Redux Toolkit – Easily use REDUX State Management in React App

Redux is an amazing state management tool that is used with React Applications. Redux Toolkit is used for writing the Redux logic in our React App. It is a recommended approach that makes the Redux state management implementation very easy.

Let’s see how to set up a React App with Redux template so it gives an advantage using Redux Toolkit with React Components.

React CRA with Redux Template – npm Command

npm terminal command for creating react application with the Redux template.

npx create-react-app my-app --template redux

React CRA with TypeScript + Redux Template – npm Command

npm terminal command for creating react application with the TypeScipt, Redux template.

npx create-react-app my-app --template redux-typescript

Install Redux Toolkit using npm

npm install @reduxjs/toolkit

npm terminal command to install Redux Toolkit for React App state management with Redux.

Install Redux Toolkit using yarn

yarn add @reduxjs/toolkit

yarn terminal command to install Redux Toolkit for React App state management with Redux.

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *