The State Object

Since the state object is the most fundamental aspect of any app, we'll design it carefully in order to avoid any problems in the future.

In the previous section, we were done making the skeleton of our Skypey app. Let’s move on to the most essential part of our app: the state object.

The way React apps are created is that your entire App is mostly a function of the state object.

Whether you’re creating a sophisticated application, or something simple, a lot of thought should be put into how you’ll structure the state object of your app.

Particularly when working with Redux, you can reduce a lot of complexity by designing the state object correctly.

So, how do you do it rightly?

First, consider the Skypey app.

A user of the app has multiple contacts.

Get hands-on with 1400+ tech skills courses.