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.
Alright, I will do something and send you a sandbox link, in the meantime, you should check my other article on useContext. That will also be helpful
I read your post about useContext and I learned a lot of, great explanation mate!
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