Hi, I'm a Redux maintainer. I'd like to offer a couple suggestions.
Is your feature request related to a problem? Please describe.
The current Redux example implementation shows use of reducers with "hand-written" immutable update logic, and has a somewhat complex store configuration. In addition, the project currently uses a "folder-by-type" folder structure.
Describe the solution you'd like
The project should switch to using the official Redux Toolkit package to implement the Redux logic.
The project should also consider switching to a "feature-folder" or "ducks" folder structure, rather than a "folder-by-type" structure.
Additional context
Redux Toolkit is our new official, opinionated, batteries-included toolset for efficient Redux development. It includes utilities to simplify several common Redux use cases, including store setup, defining reducers, immutable update logic, and even creating entire "slices" of state at once without writing any action creators or action types by hand.
We are recommending RTK as the default standard way to write Redux logic. Partly related to that, we are also recommending that developers should prefer to use "feature folders" or "ducks" rather than "folder-by-type". (Reference: the work-in-progress Redux "Style Guide" docs page.)
Since many developers will be starting their projects using react-slingshot, it would be beneficial if Redux Toolkit was included as part of the default project setup, as it will greatly simplify the application code they write.
Hi, I'm a Redux maintainer. I'd like to offer a couple suggestions.
Is your feature request related to a problem? Please describe.
The current Redux example implementation shows use of reducers with "hand-written" immutable update logic, and has a somewhat complex store configuration. In addition, the project currently uses a "folder-by-type" folder structure.
Describe the solution you'd like
The project should switch to using the official Redux Toolkit package to implement the Redux logic.
The project should also consider switching to a "feature-folder" or "ducks" folder structure, rather than a "folder-by-type" structure.
Additional context
Redux Toolkit is our new official, opinionated, batteries-included toolset for efficient Redux development. It includes utilities to simplify several common Redux use cases, including store setup, defining reducers, immutable update logic, and even creating entire "slices" of state at once without writing any action creators or action types by hand.
We are recommending RTK as the default standard way to write Redux logic. Partly related to that, we are also recommending that developers should prefer to use "feature folders" or "ducks" rather than "folder-by-type". (Reference: the work-in-progress Redux "Style Guide" docs page.)
Since many developers will be starting their projects using
react-slingshot, it would be beneficial if Redux Toolkit was included as part of the default project setup, as it will greatly simplify the application code they write.