December 2019
Intermediate to advanced
474 pages
10h 3m
English
State management is very important, as the current state of the application holds data that is valuable to the user. In previous chapters, you've already used local state management by setting an initial state in constructor and updating this with the this.setState method. This pattern is very useful when the data in the state is only of importance to the component you're setting the state in. As passing down the state as props through several components can become confusing, you'd need a way to access props throughout your application even when you're not specifically passing them as props. For this, you can use the context API from React, which is also used by packages you've already used in previous ...
Read now
Unlock full access