Course Content

  • Redux

Course Content


Learning how to use Redux also entails learning how it works, which can be a waste of effort if you don't require it. As a rule of thumb, you shouldn't use Redux unless you can't handle state with React or other front-end frameworks you're working with, according to Dan Abramov, one of Redux's creators.

Redux Toolkit (RTK), formerly known as Redux Starter Kit, provides several options for configuring the global store and creating actions and reducers more quickly.

  • Using configureStore, create a Redux store. As a named argument, configureStore accepts a reducer function.
  • Give the React application components access to the Redux store.
  • Use createSlice to make a Redux "slice" reducer.
  • In React components, use the React-Redux useSelector/useDispatch hooks.

We still utilise React-Redux to let our React components talk to the Redux store, including useSelector and useDispatch, because Redux Toolkit just covers the Redux functionality. So, let's look at how Redux Toolkit can help us simplify the code we've previously created in our todo app.

In terms of React, there is no difference between utilising Redux or Redux Toolkit. In both circumstances, you must use the standalone react-redux package. The volume and safety of non-React-related code differs between the two.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere