
In a small React app, state lives inside components and moves through props. As the app grows, the same data is needed in many places: the signed-in user, permissions, a basket, a list of notifications, the result of an API call. When several screens change that data, it becomes hard to answer a simple question: why does the screen show this value right now? Redux was built to make that question easy to answer. All shared state lives in one store, and it can only change through described, traceable events.
This article explains what Redux is, how it works, what Redux Toolkit changed, where Redux fits, when it is more than you need, and how it compares with the alternatives.
What is Redux?
Redux is an open-source JavaScript library for managing application state. It keeps shared state in a single store, changes it only through plain objects called actions, and calculates every new state with pure functions called reducers. It is most often used with React, but it does not depend on any UI library. It is released under the MIT licence.
Dan Abramov and Andrew Clark created Redux in 2015. Abramov began writing it while preparing a conference talk on hot reloading and time-travel debugging, taking the one-way data flow of Facebook's Flux architecture and ideas from the Elm architecture. The first release appeared on 2 June 2015, and Redux 1.0 followed on 14 August 2015. Since mid-2016 Mark Erikson and Tim Dorr have been its primary maintainers.
The way people write Redux has changed considerably. Early Redux code was known for boilerplate: action types, action creators, switch statements and hand-written immutable updates. Redux Toolkit, introduced in October 2019, removed most of that, and the Redux team now calls it the official recommended way to write Redux logic. Redux 5.0 and Redux Toolkit 2.0 were released together in December 2023. The original createStore function has been marked as deprecated since Redux 4.2; it still works, but new code should use Redux Toolkit's configureStore.
How Redux works
One store. The state of the whole application is kept in a single object tree inside one store. Any component can read the parts it needs.
Actions describe what happened. State never changes directly. Code dispatches an action, a plain object such as { type: 'cart/itemAdded', payload: item }, that describes an event.
Reducers calculate the next state. A reducer is a pure function that takes the current state and an action and returns the new state, without side effects. Because the same inputs always produce the same output, state changes are predictable and easy to test.
Components subscribe. Through the React-Redux bindings, components read values with useSelector and send actions with useDispatch. When the state they read changes, they re-render.
Middleware handles side effects. Calls to an API, timers and logging sit in middleware, such as thunks, between dispatching an action and reaching the reducer.
Redux Toolkit wraps all of this. configureStore sets up the store, the thunk middleware and the browser devtools in one call. createSlice generates action creators and reducers from one definition and uses the Immer library, so you can write code that looks like it mutates state while Redux still receives an immutable update. RTK Query, Redux Toolkit's built-in data fetching and caching layer, was inspired by React Query and Apollo.
Key features
- Predictable state changes: every change is an action, and every new state comes from a pure reducer.
- Redux DevTools: inspect each action, see the state before and after it, and step back through history with time-travel debugging.
- Redux Toolkit:
configureStore,createSliceandcreateAsyncThunkwith much less code than classic Redux. - RTK Query for fetching, caching and invalidating server data.
- Strong typing: Redux Toolkit works well with TypeScript.
- UI-agnostic core: used with React and React Native, and usable with other libraries or plain JavaScript.
- Middleware ecosystem for side effects, logging and persistence.
Where Redux is used
- Large React applications where many screens read and change the same data.
- SaaS products and dashboards with complex filters, permissions and cross-cutting state.
- React Native apps that share state logic patterns with a web client.
- Collaborative and real-time interfaces, where incoming events from a server update many parts of the screen.
- Long-lived products with large teams, where a strict pattern and a full action history make code easier to review and debug.
When to choose Redux, and when not to
Choose Redux when:
- A lot of state is shared across the app and updated from many places.
- You need to trace how and why state changed, especially when debugging hard-to-reproduce issues.
- Several developers work on the same front end and benefit from one enforced pattern.
- The app will be maintained for years, and predictability matters more than the fewest lines of code.
Skip it when:
- State is mostly local to components. React's
useState,useReducerand Context handle that with no extra library. - Most of your state is server data. A data-fetching library, or RTK Query if you already use Redux, fits better than hand-written reducers.
- The app is small and a minimal store such as Zustand gives enough structure with less ceremony.
If you do choose Redux, start with Redux Toolkit. Hand-written classic Redux is the reason for most of the library's reputation for boilerplate, and the Redux team itself no longer recommends it.
Redux and its alternatives
| Option | Model | Best fit |
|---|---|---|
| Redux Toolkit | Single store, actions, reducers, devtools | Large apps with complex shared state |
| Zustand | Small hook-based stores | Apps that want global state with minimal setup |
| MobX | Observable, reactive state | Teams that prefer automatic reactivity |
React Context + useReducer | Built into React | Small amounts of shared state, rarely updated |
| Pinia | Flat stores for Vue | Vue and Nuxt applications |
Zustand is the most common alternative in React projects. It gives you a global store with very little code and no provider wrapping the app, which suits small and medium apps. Redux asks for more structure in exchange for strict conventions, middleware and complete devtools history. MobX takes a different route: state is observable, and components update automatically when the values they use change.
Outside React, the same role is filled by Pinia for Vue. The choice usually follows the UI library: Redux and Zustand in React projects, Pinia in Vue projects.
How we use Redux at Internative
We use Redux for applications with complex, cross-cutting state and long-term maintenance needs. Its predictability, tooling and ecosystem help us build front ends that stay reliable as they grow, usually with Redux Toolkit on top of React.
If you are planning a large web application, or need to bring order to the state of an existing one, our web application development team can help you choose the right state layer.
Frequently asked questions
Why do I need Redux?
You need Redux, or something like it, when many parts of an app read and change the same state and it becomes hard to track who changed what. Redux puts that state in one place and records every change as an action. If your state is mostly local or mostly server data, you may not need it at all.
Is Redux still relevant?
Yes. Redux remains widely used in large React and React Native applications, and Redux Toolkit modernised it with less boilerplate, strong TypeScript support and built-in data fetching through RTK Query. Redux Toolkit 2.0 and Redux 5.0 were released in December 2023. What has changed is that smaller apps now often choose lighter tools.
What has replaced Redux?
Nothing has replaced it outright, but its role has narrowed. Server data is often handled by data-fetching libraries, local state by React hooks, and simple global state by small stores such as Zustand. Redux Toolkit is still a strong choice for complex client-side state.
Which is better, Redux or React?
They do different jobs, so they are not alternatives. React builds the user interface; Redux manages the shared state that the interface displays. Redux is commonly used together with React through the React-Redux bindings.
What does the word Redux mean?
As an English adjective, redux means "brought back" or "restored". As a software term it refers to the state management library described here, whose central idea is the reducer function that calculates each new state.
Keep reading
The articles that follow this one.



