viphat / til

Today I Learned
http://notes.viphat.work
0 stars 1 forks source link

[Redux] - Organizing State #294

Open viphat opened 6 years ago

viphat commented 6 years ago

https://redux.js.org/faq/organizing-state

https://github.com/reduxjs/redux/issues/1287

Do I have to put all my state into Redux? Should I ever use React's setState()?

Using local component state is fine.

Some common rules of thumb for determining what kind of data should be put into Redux: