3 ms·
I have been a react dev for 7 years and have loudly advocated against state management tools all that time. React already is a state management tool, designed t
by schwartzworld 4y ago
I have been a react dev for 7 years and have loudly advocated against state management tools all that time. React already is a state management tool, designed to eliminate the need for complex global state. You only need external state management if you don't fully commit to the paradigm.
- jamestimmins 4y agoCan you expand on what you mean by "the paradigm"?
- schwartzworld 4y agohttps://reactjs.org/docs/thinking-in-react.html https://reactjs.org/docs/thinking-in-react.html
- yawnr 4y agoSorry but what? What do you do when a parent component needs access to a particular slice of state? Refactor the entire tree? What about deeply nested components? Prop drill 100 levels deep?
- bobkazamakis 4y agoemit and observe an event with a callback passed down?
- 8n4vidtmkvmk 4y agoplease no. my work does this and the events are completely untraceable. you have no idea what's listening to what or where it will be caught or prevented
- eviledamame 4y agooof