Problem Statement
What is reducer composition and how does combineReducers work?
Explanation
Reducer composition is the pattern of breaking down a large reducer into smaller, focused reducers that each manage their own slice of state independently, making the code more maintainable and testable. The combineReducers function from Redux takes an object where keys are state slice names and values are reducer functions, and creates a root reducer that calls each slice reducer with its portion of state and returns a combined state object. This allows you to organize your reducers by feature or domain while Redux handles calling them appropriately and assembling the final state.
