4 ms·
Here's a long-form answer to both questions. :) https://www.safaribooksonline.com/blog/2015/10/29/react-local-component-state/ https://www.safaribooksonline.co
by rtfeldman 11y ago
Here's a long-form answer to both questions. :)
https://www.safaribooksonline.com/blog/2015/10/29/react-local-component-state/ https://www.safaribooksonline.com/blog/2015/10/29/react-loca...
- boubiyeah 11y agoFine article... But all that it tells me from my experience is that it's a good thing to put 80-90% of the app state in a central atom :p A good practice or rule of thumb is just that, it shouldn't always be the only way to do things.
- rtfeldman 11y agoFlexibility is a fine rule of thumb, but opening the door in those 10% of cases costs you things like time travel. Quite a price tag! :)