scrimba
Frontend Career Path
React basics
AirBnb clone
Project: Map experiences data into 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

Project: Map experiences data into components
AboutCommentsNotes
Project: Map experiences data into components
Expand for more info
App.js
run
preview
console
import React from "react"
import Navbar from "./components/Navbar"
import Hero from "./components/Hero"
import Card from "./components/Card"

/*
Challenge:

- import the array of data from data.js
- map over the array to create <Card /> components
- display the array of card components under the navbar
(in place of the current <Card /> component)

Note: We haven't styled the group of components yet, so they'll
still be block elements, stacked vertically. We'll add styling later.
*/

export default function App() {
// <Hero />
return (
<div>
<Navbar />
<Card
img="katie-zaferes.png"
rating="5.0"
reviewCount={6}
location="USA"
title="Life Lessons with Katie Zaferes"
price={136}
/>
</div>
)
}
Console
/index.html
-5:20