Replies: 1 comment
-
It works and used the same way as local state. Just declared in a variable outside of a react component. https://hookstate.js.org/docs/global-state. The question about local vs global state is equivalent to long lived debate "local variable vs global variable". It is simple as that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have become a big user of hookstate as it's expanded my ability to tackle complex use cases. I keep wanting to use the global hookstate() functionality though have not yet figured out the best way to do so.
I was wondering if there are any other examples or descriptions of use cases for this?
Beta Was this translation helpful? Give feedback.
All reactions