Passing the Props
Integration of the user and activeUserID into the Main as props so that we can access them later for display.
Let’s move on.
In App.js, retrieve the user and activeUserId from the store, like this:
const { contacts, user, activeUserId } = store.getState();
What we had previously was this:
const { contacts } = store.getState();
Now, pass on these values as props to the <Main /> component.
<Main user={user} activeUserId={activeUserId} />
What we had previously was this:
<Main />
Now, let’s have the render logic fleshed out in <Main />
Before:
Access this course and 1400+ top-rated courses and projects.