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 />
earlymorning logo

© 2025 - All rights reserved

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 />