Building the User Component

The full implementation and styling of the User component. We will deconstruct the user prop and access each attribute separately.

We'll cover the following

Up till now, we were rendering a User component within the Sidebar, but this component doesn’t exist yet.

Please create a User.js and User.css file within the root directory. Done that?

Now, here’s the content of the User.js file:

User.js

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy