State Management
Reducer
A reducer is a pure function that computes the next state from the current state and an action.
Rules
- No side effects
- No mutations
- Return a new state for recognized actions
Composition
- Split logic by domain
- Combine into a root reducer