Search⌘ K

Displaying a List of Pilots

Explore how to connect a Redux store to React components to display data, focusing on using Redux-ORM to query pilot data and passing it as props for rendering a pilots list.

We'll cover the following...

Now that we have pilots added to the store, we can update our <Pilots> and <PilotsList> components to display them. Since we already had <Pilots> acting as a container component, all we really need to do is connect it to the store, return an array of plain JS pilot objects as a prop, and switch from using the sample entry we had stored in its state to the array from props.

To do this, we’re going to import the singleton Redux-ORM ORM instance we created. In our ...