Function Components
A component is a function that returns JSX. Names start with a capital letter.
Example
function Welcome() {
return <h1>Welcome</h1>;
}
function App() {
return <Welcome />;
}Exercise
Capital letter.
function () {}
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.