Redux State Management
Redux is a predictable state container for JavaScript apps. It helps you write applications that behave consistently, run in different environments, and are easy to test.
The Store
The whole state of your app is stored in an object tree inside a single store. This provides a single source of truth. State becomes highly predictable, making it easier to debug and inspect.
Actions
The only way to change the state is to emit an action, an object describing what happened. An action must have a type property that indicates the type of action being performed.
Reducers
To specify how the state tree is transformed by actions, you write pure reducers. They take the previous state and an action, and return the next state without mutating the original state object.
View Full Transcript+
This section contains the full detailed transcript covering why Prop Drilling becomes a problem in large React Apps, how Redux establishes a global context using a Provider, and how to set up the boilerplate code required to run createStore, define action types, and split your root reducer into smaller, manageable chunks.
