Redux Toolkit

The official, opinionated, batteries-included toolset for efficient Redux d...

README

Redux Toolkit


GitHub Workflow Status npm version npm downloads

The official, opinionated, batteries-included toolset for efficient Redux development

(Formerly known as "Redux Starter Kit")

Installation


Using Create React App


The recommended way to start new apps with React and Redux Toolkit is by using the official Redux+JS template for Create React App , which takes advantage of React Redux's integration with React components.

  1. ``` shell
  2. npx create-react-app my-app --template redux
  3. ```

Or if you are a TypeScript user, use cra-template-redux-typescript , which is based on that template

  1. ``` shell
  2. npx create-react-app my-app --template redux-typescript
  3. ```

An Existing App


Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application:

  1. ``` shell
  2. # NPM
  3. npm install @reduxjs/toolkit

  4. # Yarn
  5. yarn add @reduxjs/toolkit
  6. ```

It is also available as a precompiled UMD package that defines a `window.RTK`global variable. The UMD package can be used as a [