# Redux Toolkit ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reduxjs/redux-toolkit/tests.yml?style=flat-square) [![npm version](https://img.shields.io/npm/v/@reduxjs/toolkit.svg?style=flat-square)](https://www.npmjs.com/package/@reduxjs/toolkit) [![npm downloads](https://img.shields.io/npm/dm/@reduxjs/toolkit.svg?style=flat-square&label=RTK+downloads)](https://www.npmjs.com/package/@reduxjs/toolkit) **The official, opinionated, batteries-included toolset for efficient Redux development** ## Installation ### Create a React Redux App The recommended way to start new apps with React and Redux Toolkit is by using [our official Redux Toolkit + TS template for Vite](https://github.com/reduxjs/redux-templates), or by creating a new Next.js project using [Next's `with-redux` template](https://github.com/vercel/next.js/tree/canary/examples/with-redux). Both of these already have Redux Toolkit and React-Redux configured appropriately for that build tool, and come with a small example app that demonstrates how to use several of Redux Toolkit's features. ```bash # Vite with our Redux+TS template # (using the `degit` tool to clone and extract the template) npx degit reduxjs/redux-templates/packages/vite-template-redux my-app # Next.js using the `with-redux` template npx create-next-app --example with-redux my-app ``` We do not currently have official React Native templates, but recommend these templates for standard React Native and for Expo: - https://github.com/rahsheen/react-native-template-redux-typescript - https://github.com/rahsheen/expo-template-redux-typescript ### An Existing App Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application: ```bash # NPM npm install @reduxjs/toolkit # Yarn yarn add @reduxjs/toolkit ``` The package includes a precompiled ESM build that can be used as a [`