Challenge: Build Reusable User Cards
Swipe to show menu
Task
Create a reusable UserCard component that displays user information using props.
The UserCard component must include:
-
A heading (
h2element). Its text content must display thenameprop. -
A paragraph (
pelement). Its text content must display thejobprop.
The App component already renders multiple UserCard components with different props.
Starter Code
Open the starter project below and complete the missing parts of the component.
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 2
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Section 2. Chapter 2