redux VS redux-toolkit

Compare redux vs redux-toolkit and see what are their differences.

redux

Predictable state container for JavaScript apps (by reduxjs)

redux-toolkit

The official, opinionated, batteries-included toolset for efficient Redux development (by reduxjs)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
redux redux-toolkit
123 145
57,400 7,049
0.5% 4.3%
8.9 9.7
5 days ago 4 days ago
TypeScript TypeScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

redux

Posts with mentions or reviews of redux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-14.

redux-toolkit

Posts with mentions or reviews of redux-toolkit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-17.
  • Preventing Hero Culture In Software Teams
    1 project | reddit.com/r/programming | 26 Jan 2022
    On that note, we're actually working on a new "action listener" middleware for Redux Toolkit, which does exactly this. It's designed to cover probably 75% of the use cases that you might have used sagas for in the past (responding to actions, longer-running async workflows, "child tasks"), but for a fraction of the bundle size and with a much simpler API based based on async functions rather than generators. We've still got a few tweaks to make to its design, but it's looking very promising so far.
  • Should I use Redux on small projects?
    1 project | reddit.com/r/learnprogramming | 21 Jan 2022
    Speaking of simpler solutions though, I highly recommend checking out redux-toolkit. It's a package from the creators of Redux intended to make Redux as approachable and easy to use as possible. I used to appreciate the confidence Redux gave me, but disliked how much work it was to set up. It very much front-loaded the complexity. Once you had everything set up and configured, it was easy to use and extend, but getting it there was painful. Now that I've picked up toolkit, I find that pretty much all of my complaints of redux in the past are gone.
  • How to make a basic React.js CRUD app in simple redux(not using react-redux nor redux-toolkit)
    2 projects | reddit.com/r/reduxjs | 17 Jan 2022
    First of all, you will need react-redux if you want to use Redux with React because React Redux are the official bindings. Secondly, you won't need to use Redux Toolkit (RTK) but I encourage you to use it because RTK reduces the amount of code needed to write Redux logic.
  • Which global state management can I use with React Query
    1 project | reddit.com/r/reactjs | 15 Jan 2022
    Out of curiosity, have you read through https://github.com/reduxjs/redux-toolkit/discussions/1163 ?
  • As a solo front-end developer, how do I deal with imposter syndrome and bring my boss back down to reality?
    4 projects | reddit.com/r/reactjs | 13 Jan 2022
    - https://redux-toolkit.js.org/ (it's basically a must have for large react apps in my opinion. redux might be a bit daunting at a first glance, but once you get how it works it is great -> managing state will become sorted and understandable) (also got the browser extension)
  • robodux: a powerful middleware and caching library for redux side-effects
    5 projects | reddit.com/r/reactjs | 11 Jan 2022
    I even tried to incorporate my slice helpers (e.g. createTable) into RTK but that idea was rejected. Even simple requests like making immer optional was rejected.
    5 projects | reddit.com/r/reactjs | 11 Jan 2022
    Interesting. I see at least a couple similarities to the in-development "action listener" middleware we've been working on for RTK, like using some AbortController-based cancelation.
  • Incrementally adopting TypeScript in a create-react-app project
    6 projects | dev.to | 11 Jan 2022
    For this tutorial, the app we'll be converting to TypeScript is a counter app built with redux-toolkit, if you're not familiar with redux, redux-toolkit or TypeScript, I highly suggest you take a look at their docs before doing this tutorial as I assume you have some basic understanding of all of them.
  • Beginner's Thread / Easy Questions (January 2022)
    4 projects | reddit.com/r/reactjs | 2 Jan 2022
    I would start with Redux Toolkit and their own docs. A lot of the tutorials you'll find elsewhere will be using the older redux patterns which are more complicated. If you prefer videos, I watched this tutorial on Redux Toolkit and RTK Query recently and found it clearer than others.
  • What's new in Redux?
    3 projects | reddit.com/r/reactjs | 30 Dec 2021
    Just read the official documentation.

What are some alternatives?

When comparing redux and redux-toolkit you can also consider the following projects:

redux-saga - An alternative side effect model for Redux apps

zustand - 🐻 Bear necessities for state management in React

react-query - ⚛️ Hooks for fetching, caching and updating asynchronous data in React

next-redux-wrapper - Redux wrapper for Next.js

redux-thunk - Thunk middleware for Redux

Immer - Create the next immutable state by mutating the current one

vite - Next generation frontend tooling. It's fast!

redux-persist - persist and rehydrate a redux store

effector-react - The state manager ☄️

Next.js - The React Framework