scrimba
Frontend Career Path
React basics
React site
Custom Components Quiz
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
Custom Components Quiz
Expand for more info
quiz.md
run
preview
console
Quiz!

1. What is a React component?


2. What's wrong with this code?
```
function myComponent() {
return (
<small>I'm tiny text!</small>
)
}
```

3. What's wrong with this code?
```
function Header() {
return (
<header>
<nav>
<img src="./react-logo.png" width="40px" />
</nav>
</header>
)
}

ReactDOM.render(Header(), document.getElementById("root"))
```
Console
/index.html
-2:47