State Management · Senior · Question 14 of 75

Why does Redux recommend the "ducks"/feature-folder structure with createSlice?

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.

Further reading

Problem with a question

State Management · Senior · question 14

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz