My take on #reactjs setState: 1


My take on #reactjs setState:

1. Use setState when 1 component uses the data.
2. Use Redux when many components use the data.
And most importantly: Avoid using Redux or Mobx until know you need them. Plain React with setState scales quite well and is simple.
I like Redux, but avoid it for smaller apps and read-focused apps. State in the top-level component is all ya need in many cases.

View original on X