scrimba
Frontend Career Path
React basics
AirBnb clone
Destructuring props
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
Destructuring props
Expand for more info
Contact.js
run
preview
console
import React from "react"

export default function Contact(props) {
return (
<div className="contact-card">
<img src={props.img}/>
<h3>{props.name}</h3>
<div className="info-group">
<img src="./images/phone-icon.png" />
<p>{props.phone}</p>
</div>
<div className="info-group">
<img src="./images/mail-icon.png" />
<p>{props.email}</p>
</div>
</div>
)
}

const person = {
img: "./images/mr-whiskerson.png",
name: "Mr. Whiskerson",
phone: "(800) 555-1234",
email: "mr.whiskaz@catnap.meow"
}

Console
/index.html
-3:53