Skip to content

Guide · Open source

How to use Redux Toolkit: install it and get started

Updated · written with AI from the project's own documentation and checked against our catalogue data

Redux Toolkit is the official, opinionated set of tools for managing shared application state in JavaScript and TypeScript apps. It bundles common Redux needs into one package so you write less boilerplate. This guide shows you how to install it, what you need before you start, and whether it fits your project.

Redux Toolkitreduxjs/redux-toolkit · ★ 11.2k · MIT

Quick start

  1. 1Check prerequisites. Make sure Node.js is installed on your machine.
  2. 2Open your project folder. Move into the project where you want to manage shared state.
  3. 3Install the package. Run npm install @reduxjs/toolkit in the terminal.
  4. 4Read the official docs. Open redux.js.org/toolkit to learn the API, since this guide does not cover it.

What is Redux Toolkit?

Redux Toolkit is the official toolset for building Redux state management. Its project description calls it batteries-included, which means it packages common Redux needs into a single dependency instead of asking you to assemble them yourself.

Developers use it to write less boilerplate code when managing state that several parts of an app share.

What do you need before you install it?

You need Node.js installed. Redux Toolkit is installed through a package manager, and the project's README gives npm as the example.

The project is written in TypeScript, so it suits TypeScript codebases that need typed state logic, but it is also used from plain JavaScript.

  • Node.js
  • A package manager such as npm

Install Redux Toolkit with npm

Run the following command in your project folder to add Redux Toolkit as a dependency.

The official documentation is at redux.js.org/toolkit if you want to read the full guide after installing.

npm install @reduxjs/toolkit

Decide whether Redux Toolkit fits your project

Redux Toolkit suits developers who already use Redux or are learning it, and teams that want the officially recommended Redux setup. It is a good match for projects with growing shared state.

Projects with very simple state needs may find Redux itself more machinery than they need. In that case a lighter library may be a better fit.

  • Good fit: teams that want the official Redux setup and TypeScript projects needing typed state logic
  • Consider alternatives: apps with very simple state needs

Know the limits of this guide

The README text available for this project was empty or truncated, so this page does not cover the API, configuration options or code examples. Check the official documentation at redux.js.org/toolkit for those details.

Redux Toolkit is a code library, not an end-user tool, so it is aimed at developers rather than non-technical users.

What people use it for

  • Managing state shared across several components in a web app
  • Building a TypeScript application that needs typed state logic
  • Adopting the officially recommended Redux setup in an existing Redux project

Frequently asked questions

Is Redux Toolkit free to use?

Redux Toolkit is released under the MIT licence. The licence is listed on the project page, and its source is written in TypeScript.

What do I need to install Redux Toolkit?

You need Node.js. Install the package with npm using npm install @reduxjs/toolkit.

What is the install command for Redux Toolkit?

The README gives npm install @reduxjs/toolkit. Run it in your project folder.

Is Redux Toolkit good for TypeScript?

The project is written in TypeScript and is recommended for TypeScript projects that need typed state logic.

What are alternatives to Redux Toolkit?

Comparable projects listed for this item are Zustand, Jotai and MobX. A lighter option like these may suit projects with very simple state needs.

Where can I find the Redux Toolkit documentation?

The official homepage is redux.js.org/toolkit. The README available for this guide was truncated, so use that site for API details.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Redux Toolkit is a good choice for developers who already use Redux or want the officially recommended setup, especially in TypeScript projects. If your app has very simple state needs, a lighter library such as Zustand, Jotai or MobX may be less work.

Install options & downloads