3 ms·
I do not like Redux a lot. It leads to a lot of boilerplate code and a lot of extra files. It also exposes transparently the state that lead by default to a cou
by ChrisCinelli 7y ago
I do not like Redux a lot. It leads to a lot of boilerplate code and a lot of extra files. It also exposes transparently the state that lead by default to a coupling between the "internal" data rappresentation and the rest of the UI components making refactoring a nightmare.
Mobx at least leads to a more concise codebase.
GraphQL and Relay/Apollo/etc help a lot to reduce the business logic in the front and code to written in general.
- acemarke 7y agoAs I've mentioned elsewhere in the thread: - Our new Redux Toolkit package (https://redux-toolkit.js.org https://redux-toolkit.js.org) simplifies most common Redux use cases, - Our new Style Guide docs page recommends patterns that result in simpler code, such as using the "ducks" pattern for single-file logic ( https://redux.js.org/style-guide/style-guide#structure-files-as-feature-folders-or-ducks https://redux.js.org/style-guide/style-guide#structure-files... ) - And we're working on a docs rewrite that will update the tutorials to show simpler approaches as well