A JS library for predictable global state management
open sourceMITself-hostablefree
Redux keeps an app's global state in one store that changes only through dispatched actions handled by pure reducer functions, so state changes are predictable, testable and can be replayed in a time-travelling debugger. The core is about 2 kB and works with React (through React Redux) or any other view library, on the client, the server or React Native. Redux Toolkit is the officially recommended way to write Redux logic today, with its suggested best practices built in. MIT licensed.
Problems it solves
- state is scattered across React components and passing props down five levels is a mess
- hard to tell why a value in my app changed or which code changed it
- share logged-in user and cart data across every page of a single page app
- want to replay the sequence of state changes that led to a bug
- keep app state predictable and testable as the frontend grows
- global state management for a large React app
Features
- single store
- actions and pure reducers
- middleware
- Redux DevTools time-travel debugging
- Redux Toolkit
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Redux does.
- TanStack Query Async server-state management and data fetching for TS/JS, React, Vue, Svelte, Solid and Angular
- Pinia The intuitive store for Vue.js