State Management · Senior · Question 14 of 75
Why does Redux recommend the "ducks"/feature-folder structure with createSlice?
- ✓Correct answer: State, reducers, actions and selectors for a feature live together, reducing scattered boilerplate
- 2Redux requires one file per action type
- 3It's needed for
configureStoreto discover reducers
Explanation
The style guide recommends organizing by feature and using createSlice so a single file owns a slice's logic. Cross-feature reactions go through extraReducers or listeners rather than reaching into other slices.