Chapter 6: Introducing Global State Libraries
We have learned about several patterns used to share state among components so far. The rest of this book will introduce various global state libraries that use such patterns.
Before diving into the libraries, we will recap the challenges associated with global states and discuss two aspects of libraries: where the state resides and how to control re-renders. With this in hand, we will be able to understand the characteristics of global state libraries.
In this chapter, we will cover the following topics:
- Working with global state management issues
- Using the data-centric and component-centric approaches
- Optimizing re-renders