12
State Management in React
In the previous chapters, we explored the concept of state in React and mastered the basics of working with it using the useState
hook. Now it’s time to delve deeper into the global state management of applications. In this chapter, we will focus on the global state: we’ll define what it is, its key advantages, and the strategies for its effective management.
This chapter will cover the following topics:
- What is global state?
- React Context API and useReducer
- Redux
- Mobx
What is global state?
In developing React applications, one of the key aspects that requires special attention is state management. We are already familiar with the useState
hook, which allows us to create and manage state within a component. This ...
Get React and React Native - Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.