Chapter 8. Structuring a Redux store

This chapter covers

  • Structuring relational data in Redux
  • Learning the pros and cons of nested data versus normalized data
  • Using the normalizr package
  • Organizing different types of state within Redux

Parsnip is built using sound Redux fundamentals, but the app’s data requirements up to this point are simple. You have a single tasks resource, meaning you haven’t had any opportunities to deal with relational data. That’s what this chapter is for! You’ll double the number of resources in the app (from one to two!) by adding the concept of projects to Parsnip, meaning tasks will belong to a project. You’ll explore the pros and cons of two popular strategies for structuring relational data: nesting and normalization. ...

Get Redux in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.