Hi community,
Currently I am following some tutorials about ReactJS and I am at the point of learning how to manage state. For this we can use libraries like Redux or the newer useState()
hook.
What is your opinion / best practices about this topic, are the hooks the way to go from now on?
Top comments (2)
For local or sub-contexts, you can simply use
useState/useReducer
orContext
API.For global states... it is a heated topic.
To provide a few libraries, I can think of are,
There are lotcha others (github.com/GantMan/ReactStateMuseum) but check'em out during spare time... Just way too many.
I use neither. I prefer Mobx 90% of the time. Regaining 10% is useState and it's only for small, local states