3 ms·
Well I'm using React so I can't be re-implementing it :) I'm not advocating for any ground breaking paradigms here, I guess my only point is that the common ad
by viklove 7y ago
Well I'm using React so I can't be re-implementing it :)
I'm not advocating for any ground breaking paradigms here, I guess my only point is that the common advice to just throw everything into Redux (global store) is bad advice. You should only put global state into your global store. The common alternative is to silo state and functionality/UI into one component. I'd argue the third alternative, taking the best of both worlds, enables far more productivity. Basically creating mini-Redux stores that are only focused on one bit of user interaction. These are far more reusable, and since they're scoped locally they eliminate a lot of edge cases (and they're composable!).
- nine_k 7y agoThis sounds quite nice. I wonder if proper Redux stores could be used for that (because you can create many of them).
- deleted 7y ago[deleted]