
why start i use redux toolkit? why not classic redux?
I Was Writing 4 Redux Functions for Everything… Until Redux Toolkit Changed It When I first started learning Redux, I thought this was just how things worked. If I needed to manage a simple feature, I had to write: Action types Action creators Reducers Store configuration At first, it felt “professional”. But after a few days, it started to feel… repetitive. And honestly, a bit exhausting. The Problem With Classic Redux (From My Experience) Let me be real. Redux is powerful. No doubt. But as a beginner, I kept asking myself: Why do I need so much code just to update a simple state? For one feature, I was jumping between multiple files: actions.js reducers.js store.js And inside those files: writing constants writing functions writing switch cases It felt like I was doing the same thing again and again. Then I Discovered Redux Toolkit Today, I finally spent time understanding Redux Toolkit . And this is where everything started to change. Redux Toolkit is basically the modern way of wri
Continue reading on Dev.to Webdev
Opens in a new tab



