scrimba
Frontend Career Path
React basics
AirBnb clone
Prop quiz! (Get it?? 😆)
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

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
AboutCommentsNotes
Prop quiz! (Get it?? 😆)
Expand for more info
quiz.md
run
preview
console
1. What do props help us accomplish?



2. How do you pass a prop into a component?



3. Can I pass a custom prop (e.g. `blahblahblah={true}`) to a native
DOM element? (e.g. <div blahblahblah={true}>) Why or why not?



4. How do I receive props in a component?
function Navbar() {
return (
<header>
...
</header>
)
}


5. What data type is `props` when the component receives it?
Console
/index.html
-4:24