3 ms·
Note that we have _always_ advised that you should avoid putting literally every piece of state into the Redux store, and we do _strongly_ encourage keeping loc
by acemarke 6y ago
Note that we have _always_ advised that you should avoid putting literally every piece of state into the Redux store, and we do _strongly_ encourage keeping local state in components:
- https://redux.js.org/faq/organizing-state#do-i-have-to-put-all-my-state-into-redux-should-i-ever-use-reacts-setstate https://redux.js.org/faq/organizing-state#do-i-have-to-put-a...
- https://redux.js.org/style-guide/style-guide#evaluate-where-each-piece-of-state-should-live https://redux.js.org/style-guide/style-guide#evaluate-where-...
- https://redux.js.org/tutorials/essentials/part-2-app-structure#component-state-and-forms https://redux.js.org/tutorials/essentials/part-2-app-structu...
- rsuelzer 6y agoWhich goes to the point that redux is not perfect and has its own downsides. I generally take the simplest solution to solving a problem and favor readability over abstraction whenever possible.