Sometimes you can get into a situation when you’re choosing between Redux and React’s setState(). When I’m doing such choice, I like to use the following criterion.
Imagine that the browser keeps the stuff you store in Redux even when you refresh the page.
Use Redux if you’d like to keep the state across the page refreshes. Use setState() if it isn’t necessary
Basically, this is about the importance of a piece of state. Is it important enough to put it into the store and keep it across refreshes? If yes, use Redux. If no, setState() would do the job just fine.
Here’s how I’d make the choise:
... read the whole story at iamakulov.com.