scrimba
Frontend Career Path
React basics
React site
Parent/Child Components
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
Parent/Child Components
Expand for more info
index.js
run
preview
console
import React from "react"
import ReactDOM from "react-dom"

function Page() {
return (
<div>
<header>
<nav>
<img src="./react-logo.png" width="40px" />
</nav>
</header>
<h1>Reasons I'm excited to learn React</h1>
<ol>
<li>It's a popular library, so I'll be
able to fit in with the cool kids!</li>
<li>I'm more likely to get a job as a developer
if I know React</li>
</ol>
<footer>
<small>© 2021 Ziroll development. All rights reserved.</small>
</footer>
</div>
)
}

ReactDOM.render(<Page />, document.getElementById("root"))
Console
/index.html
-4:54