Front-end · Tool
Redux
Predictable state for complex applications.
01Overview
Redux centralizes application state in a single, predictable store. I use it when many parts of an app share and change the same data, and the team needs traceability and debuggability.
02Key concepts
What anyone working with it needs to understand
- 01
Single store
One source of truth for global application state.
- 02
Actions & reducers
State changes described as events and handled by pure functions.
- 03
Immutability
Never mutate state; return new objects to enable change detection.
- 04
Selectors
Deriving and memoizing data with reselect.
- 05
Middleware
Extending dispatch for async flows, logging and side effects.
- 06
Redux Toolkit
createSlice, RTK Query and less boilerplate.
03In practice
Part of my React toolkit (Redux, Redux-Saga, Context API) for applications with complex shared state.
04Related