scrimba
Frontend Career Path
Advanced React
Reusability
Aside - children in HTML
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Aside - children in HTML
Expand for more info
index.js
run
preview
console
import React from 'react';
import ReactDOM from 'react-dom/client';
import Button from "./Button"

function App() {
return (
<main>
<Button text="Click here" />
{/* The concept of "children" is found everywhere in HTML! */}


</main>
)
}

ReactDOM.createRoot(document.getElementById('root')).render(<App />);
Console
/index.html
-2:12