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

/**
Challenge:

- Add an `ul` inside the Header's `nav` and create
the following `li`s: "Pricing", "About", & "Contact"
*/

function Header() {
return (
<header>
<nav>
<img src="./react-logo.png" width="40px" />
</nav>
</header>
)
}

function Footer() {
return (
<footer>
<small>© 2021 Ziroll development. All rights reserved.</small>
</footer>
)
}

function MainContent() {
return (
<div>
<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>
</div>
)
}

function Page() {
return (
<div>
<Header />
<MainContent />
<Footer />
</div>
)
}

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