React Components
A component is a function that returns markup. Props arrive as its first argument.
Example
function Badge({ text }) {
return <span>{text}</span>;
}
Your task
Write a Card component that renders its title prop inside a div.
React & Modern Frontend
A component is a function that returns markup. Props arrive as its first argument.
function Badge({ text }) {
return <span>{text}</span>;
}
Write a Card component that renders its title prop inside a div.
This lesson is checked against the lesson rules. Your code is never run on our servers.