JavaScript to React

Join the React Bootcamp

The React Bootcamp is 5 full weeks of professional React training to take you from wherever you are to top-tier React programmer in record time.

Lifetime Access

$79
Complete Package
Become a React Pro
Problem

Passing Objects as Arguments

Create an object and put it in a variable, profileProps.

Figure out what data needs to be passed down as an argument to the profile function.

Add that data as key-value pairs to the profileProps object.

Pass profileProps down to createProfile and display the data that was passed down.

This lesson is part of the full version of the React Bootcamp.

Click here to purchase.
Already joined? Log in here

Transcript

In our application, we're displaying a profile up at the very top that consists of a user's profile image, their name, and an associated image.

This is broken into the createProfile component and the createPhoto component.

We saw recently how we could split up each part of the component that...