What Does Redux Do? (and when should you use it?)

Last updated 1 year ago by Dave Ceddia

react

Struggling to wrap your head around Redux? Don’t worry, you’re not alone.

I’ve heard from many, many people that Redux is the biggest barrier to writing the React apps they want to.

By the end of this post you’ll understand what Redux is for, and how to know when it’s time to add it to your own app. Why?

The best question to start with is, Why should we use Redux at all?

And the answer isn’t “because everyone else on the internet is using it.” (I don’t doubt that’s why a lot of people are using it, but let’s go deeper.)

The reason Redux is useful is that it solves a problem.

And no, the problem it solves is not “state management.” That’s super vague. Heck, React already does state management. Redux does help manage state, but that’s not the problem it solves.

Read full Article