You may have heard about different tools to manipulate the state in React and a lot of arguing around the pros and cons of each, but here is the naked truth - all are good, it just depends on the task. I am here to help to pick the right tool for your project with a short comparison.
First of all, let's define the terms.
State management is about how an application handles the data needs of its components, with regards to loading, storing, and sharing this data.
Your state management tools and techniques depend on:
- The size and complexity of your application
- How many components need to share data
- The unique strength and weaknesses of each
You can take a look at different approaches here : Link to github
Feel free to share your thoughts and opinion about this topic :)
Live long and prosper!