Setting Up Redux-ORM
We'll cover the following...
Okay, so loading two fields was pretty easy. It’s time to start actually working out what the application’s data model will look like.
As described previously, the goal of this sample application is to build a miniature version of the Battletech MekHQ game tool. We want to be able to track Battlemech Pilots assigned to a combat unit, which specific Battlemech each Pilot is assigned to, and ultimately organize Battlemechs and their Pilots into groups called “Lances” and “Companies”.
We’re going to use the Redux-ORM library to help define what our data types are and how they relate to each other. Those Model types can then be used to help us load data into our store, and query and update that data.
Before we can use Redux-ORM, we need to add the package:
yarn add redux-orm@0.9.4
That will download ...