Loading lesson…
New idea
A React component is a JavaScript function that returns markup. Component names start with a capital letter: lowercase tags are treated as plain HTML elements. Components can use other components, and you can put each one in its own file and export it.
function Profile() {
return <img src="https://i.imgur.com/MK3eW3As.jpg" alt="Katherine Johnson" />;
}
export default function Gallery() {
return (
<section>
<h1>Amazing scientists</h1>
<Profile />
</section>
);
}Read the official docs ↗