Problem Statement
What is the recommended way to structure normalized state in Redux?
Explanation
Normalized state structure stores entities as objects keyed by ID like users: { byId: { 1: userData }, allIds: [1, 2] } which eliminates duplication, makes updates simpler, and improves performance by avoiding nested updates. This pattern treats your Redux store like a database with lookup tables, where relationships between entities are represented by IDs rather than nesting objects. Normalizr library or RTK's createEntityAdapter can help automate this normalization process.
