Function Components
A component is a function that starts with a capital letter and returns JSX. Use it like an HTML tag. Capitals tell React it is a component, not a plain tag.
Example
function Welcome() {
return <h2>Welcome!</h2>;
}
function App() {
return <Welcome />;
}Exercise
Component names start with a ___ letter.
Start with a letter
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.