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
  • Appwrite - The open-source backend cloud platform
  • Sonar - Write Clean JavaScript Code. Always.
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
redux redux-toolkit
251 274
59,952 9,891
0.1% 0.8%
8.8 8.7
13 days ago about 24 hours ago
TypeScript TypeScript
MIT License 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 2023-09-15.

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 2023-09-15.
  • How to manage state in a React app using Redux.
    2 projects | dev.to | 15 Sep 2023
    In this tutorial, you managed the state of a React Todo app using Redux. Next, learn how to manage the state using the Redux Toolkit. Redux Toolkit makes it easier to write good Redux applications and speeds up development. Furthermore, learn Redux DevTools to help you trace when, where, why, and how your application's state changed.
  • React Ecosystem in 2023.
    15 projects | dev.to | 17 Jun 2023
    redux toolkit
  • Exploring React Query: A Powerful Alternative for Server-Side State Management in React
    3 projects | dev.to | 6 Jun 2023
    Nowadays Redux has evolved and it's much easier to start with, thanks to Redux Toolkit. It also has a library with the same purpose as React Query called RTK Query. It applies different concepts than React Query but the idea behind is quite the same.
  • Building an Account switcher with NextJS and Next Auth
    5 projects | dev.to | 3 Jun 2023
    The accounts manager is responsible for storing and managing all the accounts that users have used on your app. You can use any state management solution such as Redux, Zustand, Jotai, React Context etc.
  • Scalability: the Lost Level of React State Management
    9 projects | dev.to | 1 Jun 2023
    I'm talking about Redux pre-RTK here. Due primarily to its infamous boilerplate, raw Redux has proven to not be a very scalable solution - it's clumsy for small apps to get started with and at the same time is clunkily verbose for large apps.
  • OpenAPI v4 Proposal
    24 projects | news.ycombinator.com | 31 May 2023
    I've been using redux toolkit's OpenAPI code generator for a side project and it's been pretty good. The documentation is a bit lacking and it could certainly use more work to make names more customizable. The generated code comes out looking very much machine generated. But I love that RTKQuery (redux toolkit query) has client side caching so that if I use a query param that was already used before, it will remember and just serve from the local cache.

    But it's been nice being able to make a backend change, run the code generator, and then be able to use whatever API in react. I hope this type of stuff gets developed more!

    [0] - https://github.com/reduxjs/redux-toolkit/tree/master/package...

  • Which state management library should I use?
    10 projects | /r/reactjs | 18 May 2023
    For global state, Zustand or RTK
  • JavaScript State Machines and Statecharts
    8 projects | news.ycombinator.com | 14 May 2023
    Interesting use case, because for a react project with lots of state management, were you not using redux? And if so, were you using Redux Toolkit? https://redux-toolkit.js.org/

    The last major react project I worked on I found that RTK kinda functioned as a state machine definition for the project, and let us work on requests states in our components, i.e. if loading do this, if not yet loaded do that, etc.

    I guess with this state machine framework you'd also be managing DOM state in one spot which could be kind of nice. In the big project we had to consider Formik managed input fields, buttons, modals, etc.

  • Is redux and thunks still used or are there other alternatives for it now?
    12 projects | /r/reactjs | 10 May 2023
    Redux is a solid option (Redux meaning RTK)
  • Moving from Context to Redux help!
    5 projects | /r/reactjs | 5 May 2023
    Use Redux Toolkit. Their docs are very well written and helpful.

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

redux-thunk - Thunk middleware for Redux

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

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

react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]

SWR - React Hooks for Data Fetching

valtio - 💊 Valtio makes proxy-state simple for React and Vanilla

remix - Build Better Websites. Create modern, resilient user experiences with web fundamentals.

jotai - 👻 Primitive and flexible state management for React