scrimba
Learn React
AirBnb clone
React renders arrays
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

React renders arrays
AboutCommentsNotes
React renders arrays
Expand for more info
App.js
run
preview
console
import React from "react"
import Joke from "./Joke"

export default function App() {
return (
<div>

</div>
)
}
// <Joke
// punchline="It’s hard to explain puns to kleptomaniacs because they always take things literally."
// />
// <Joke
// setup="I got my daughter a fridge for her birthday."
// punchline="I can't wait to see her face light up when she opens it."
// isPun={false}
// />
// <Joke
// setup="How did the hacker escape the police?"
// punchline="He just ransomware!"
// isPun={true}
// />
// <Joke
// setup="Why don't pirates travel on mountain roads?"
// punchline="Scurvy."
// isPun={true}
// />
// <Joke
// setup="Why do bees stay in the hive in the winter?"
// punchline="Swarm."
// isPun={true}
// />
// <Joke
// setup="What's the best thing about Switzerland?"
// punchline="I don't know, but the flag is a big plus!"
// isPun={false}
// />
Console
/index.html
-4:29