DEV Community

Mariusz
Mariusz

Posted on • Edited on

2 1

React Tldr; Basic concepts of normalizing data

  • Each type of data gets its own "table" in the state.
  • Each "data table" should store the individual items in an object, with the IDs of the items as keys and the items themselves as the values.
  • Any references to individual items should be done by storing the item's ID.
  • Arrays of IDs should be used to indicate ordering.
  • Use "Normalizr" library if you want to automate the normalization process

Source: https://redux.js.org/recipes/structuring-reducers/normalizing-state-shape

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more