5 ms·
Honestly I'd argue you don't. I like the explicit nature of top down state and passing down actions via props because then you can see directly, via props, wha
by nightski 4y ago
Honestly I'd argue you don't. I like the explicit nature of top down state and passing down actions via props because then you can see directly, via props, what mutates what. I've built quite sophisticated applications that involve financial forecasting, logistics planning, etc.. using exactly this technique.
It also gives you the ability to use local state when it makes sense. You really don't need the intermediate state of a text input at the top level state for example.