What was that sandbox link? I'd love to see a custom hook Sharing a consistent State across components. I feel like you can only do it with context, no?
If by consistent you mean a global state, then you can only do that with context or any store that holds global state. Just create a hook that consumes your store
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What was that sandbox link? I'd love to see a custom hook Sharing a consistent State across components. I feel like you can only do it with context, no?
If by consistent you mean a global state, then you can only do that with context or any store that holds global state. Just create a hook that consumes your store