© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
E. ElromReact and Librarieshttps://doi.org/10.1007/978-1-4842-6696-0_5

5. State Management

Elad Elrom1  
(1)
Montvale, NJ, USA
 

In the previous chapter, we built a header component with a menu and a drawer with the help of Material-UI. We also connected the pages using React Router. We learned about React components and how to pass information from parent components down to a child component using props. We also learned about the component lifecycle and the component state. However, if we want to implement other common elements in most apps, such as store user’s information, cart, or any other data-based state that multiple components or subcomponents may need, ...

Get React and Libraries: Your Complete Guide to the React Ecosystem 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.