The developers of Redux decided to make it as compact and flexible as possible in terms of expansion. Therefore, there are few bugs in Redux, and it has a rich ecosystem with many add-ons for all occasions. But everything has its price, Redux itself is in no way connected with React, and if you want it to be easy to integrate, you need to learn another library - Redux Toolkit.
Redux Toolkit not only glues them together, but even changes the way you work with Redux beyond recognition. It introduces many useful abstractions and includes so-called batteries such as the commonly used middlewares. The overall idea of the library is to make working with data (storage, extraction, use) as convenient as possible by removing the template code that was characteristic of applications on Redux.
Redux Toolkit introduces many new concepts that are hard to consider in isolation without seeing the whole picture. So first, we'll look at an example with everything in one place without diving in, and then, in the following lessons, we'll take apart each element piece by piece.
All this begs the question, why? First we study React in classes, then it turns out that there are functional components, then we recommend using hooks. Then, redux is attached to this side and at the end we replace it with toolkit, which, fortunately, is the final point in this journey.
React evolved like this, first one thing, then another, then another, and now we have toolkit. And you need to know all this, because toolkit has redux under the hood and we learn it, but hooks do not replace classes and classes will remain forever. In the end, what we have is what we have.
This course is about Redux Toolkit. How Redux works is explained in another course.
The Hexlet support team or other students will answer you.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.
Programming courses for beginners and experienced developers. Start training for free
Our graduates work in companies:
From a novice to a developer. Get a job or your money back!
Sign up or sign in
Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.