scrimba
Learn React
AirBnb clone
Project: Sold Out Badge
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: Sold Out Badge
AboutCommentsNotes
Project: Sold Out Badge
Expand for more info
components
Card.js
run
preview
console
import React from "react"

export default function Card(props) {
return (
<div className="card">
<img src={`../images/${props.img}`} className="card--image" />
<div className="card--stats">
<img src="../images/star.png" className="card--star" />
<span>{props.rating}</span>
<span className="gray">({props.reviewCount}) • </span>
<span className="gray">{props.location}</span>
</div>
<p className="card--title">{props.title}</p>
<p className="card--price"><span className="bold">From ${props.price}</span> / person</p>
</div>
)
}
Console
/index.html
-9:06