External libraries
First of all, it is important to understand why we should consider using the state inside our components, and why it can help us in different ways.
Most of the tutorials or boilerplates for React already include external libraries to manage the state of the application, such as Redux or MobX.
This leads to a common misconception that you cannot write a stateful application using React only, which is far from the truth.
The direct consequence is that many developers try to learn React and Redux together, so they never find out how to use the React state correctly.
This section is our opportunity to make it clear how we can use the state in the right way and understand why, in some cases, we do not need any external libraries. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access