These are the 6 questions I ask to decide where to store state in React apps


These are the 6 questions I ask to decide where to store state in React apps.

See any missing scenarios? Suggested tweaks?

#reactjs

I'm exploring these ideas in detail in my new course "Managing React State". I'm publishing on @pluralsight late this summer. ☀️

Thanks in advance for feedback!
Oops, point 3 should say "react-query" instead of "redux-query". Sorry @tannerlinsley 🤦‍♂️
Update: Lot's of interesting conversation on this. Here's a V2. I've added 2 new questions:

- Is it a DOM ref or not rendered? (question 4)
- Can it be derived? (question 5)

Also fixed typo in question 3: Now says "react-query".

View original on X