Components & JSX2 / 14
Up next

Function component

// a component is just a function that returns markup
function Welcome() {
  return <h1>Welcome</h1>;
}

export default Welcome;
What you're solving

a component is a function that returns JSX