The Header Component
In this lesson, we'll access the updated state from the store (the update was made after we dispatched the setUserID action), and use it to display the selected contact's information in the header.
We'll cover the following...
We'll cover the following...
Let’s begin with the Header component.
The current content of the chatWindow component is this:
Not very helpful. Update the code to this:
What’s changed?
Remember that the activeUserId is passed as props into the ...