React component
A React component describes a set of nested elements. Those elements are HTML elements, or React components that ultimately resolve to HTML elements.
function Home() {
return <div>Hi</div>
}
function App() {
return <Home />
}
consume a React element
<App />