Using Redux Toolkit for React Applications

Karan Balkar
In one of my previous posts, I mentioned about how can one use the Redux toolkit to reduce some of the boilerplate code generated by a default or standard Redux implementation. For those of you who don’t like things complicated, the Redux toolkit makes a bit simpler. Let’s try to understand the same using our previous example itself. Create new app with Redux toolkit npx create-react-app using-redux-toolkit-react --template redux Installing the redux toolkit dependency # using Yarn package manager yarn add @reduxjs/toolkit Configuring a slice The good part of the Redux toolkit is that it allows to define your actions and reducers at one single place.