Restructuring the State Object

In this lesson, we'll turn our three independent components into objects and figure out a way to link them.

In the previous lesson, we decided to make our Messages and Contacts components independent.

We now need to figure out a way to connect the two in order to know which messages belong to which user.

Here’s one way to handle this:

Get hands-on with 1200+ tech skills courses.