From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Introduction to RTK

Introduction to RTK

Hello and welcome to lesson number 5 of this course. In this lesson, we are going to learn about the react toolkit, slices, reduces, actions, stores and whatever that library gives us. We first have to take a look that why we should actually be using Redux toolkit rather than using the conventional Redux. The most important thing this library offers us is it reduces the boilerplate, like we don't need to manually define the action types and all the other stuff that we have to do in Redux. So it basically lowers down the work and it provides the built-in functions which makes things easier for us. It has built-in best practices with the uses of emer, thunks, and development tools available. So these things combined helps us calling the asynchronous APIs as well as debugging our application when we are using Redux and we have complex state structure. It has opinionated defaults that means that it reduces down the chances of mistakes by having some default parameters set automatically…

Contents