4 ms·
> Some people would argue that if using Redux, also having local state logic is an anti pattern. I won't disagree that this is a popular opinion, but there's l
by ryanbrunner 8y ago
> Some people would argue that if using Redux, also having local state logic is an anti pattern.
I won't disagree that this is a popular opinion, but there's little practical benefit to storing state that's truly local to a single component (or a very small tree) in Redux just because it's there.
Even the maintainers of Redux maintain that it's perfectly acceptable to use local state - https://redux.js.org/faq/organizing-state#do-i-have-to-put-all-my-state-into-redux-should-i-ever-use-react-s-setstate https://redux.js.org/faq/organizing-state#do-i-have-to-put-a...