Problem Statement
How should you structure state in a Redux store and why?
Explanation
You should structure Redux state as a normalized, flat structure where entities are stored by ID in lookup tables rather than nested deeply, which makes updates easier and prevents duplication. Keep the state minimal and derive computed data in selectors rather than storing redundant information, and organize state by domain or feature rather than by component structure. This approach improves performance, makes reducers simpler, prevents data inconsistencies, and makes it easier to access and update specific pieces of state.
