1. 3
    Replace Assets in React Applications Created with create-react-app
    26s

Replace Assets in React Applications Created with create-react-app

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 4 years ago

Before we dig in, let's personalize our app!

For the first Extra Credit activity, look for the avatar.jpg file and update it with your own photo.

You can find the image file in /lessons/shared-assets.

Click here for exercise instructions

Instructor: [0:00] After installing our dependencies, we're going to start up with this lunchtime app. We can see in the top right corner, we have an avatar, but that's me. What if we wanted to personalize that or even if I wanted to change it to another picture of myself?

[0:12] I downloaded this other picture of me biting the world. The first thing I'm going to do is move it to the shared assets folder in our project. Next, I want to remove that original avatar file and rename this file to avatar. If we reload the page, we can see that it already changed.