3 ms·
Sure, but its very widely used in conjunction with React especially in larger projects. I think its fair game for critique in that context. Also, the author of
by htormey 10y ago
Sure, but its very widely used in conjunction with React especially in larger projects. I think its fair game for critique in that context. Also, the author of the article specifically called out Redux:
"For example, besides the four facets above, the state management problem of React is non-negligible. If we introduce a third-party library such as Redux to deal with the state, the framework would become tangled and the number of layers would increase."
I like Redux but I think the actions/reducers structure can be a little cumbersome to follow at first.
- WalterSear 10y agoIMNSHO, Redux is a footgun, and adds so much boilerplate and code discontinuity as to negate much of it's benefit outside of colossal codebases and teams. Instead of reasoning in one file, now you have to reason through half a dozen. Poorly set up actions/reducers will _stay_ cumbersome to follow, and aren't appropriate for every application. However, none of it's problems are due to react.
- htormey 10y agoI agree. Dan Abramov the creator of Redux has a whole article devoted to this topic: https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367 https://medium.com/@dan_abramov/you-might-not-need-redux-be4... A lot of the work I'm doing right now is in a reasonably complex react native app with multiple screens. In that context its worth the added boiler plate. I wouldn't use it for a one or two screen app with little shared state.