DEV Community

Cover image for How to change the logo and App name in your own React app
Amrita-padhy
Amrita-padhy

Posted on

1

How to change the logo and App name in your own React app

Replace the Default Logo Image:

In a CRA project, the default logo is typically located in the public directory and is named favicon.ico. To change the logo, follow these steps:

  1. Replace the Logo Image: Replace the existing favicon.ico with your own logo image. Make sure your new logo is named favicon.ico. You can also replace any other images you want to use throughout your application in the public directory.

2-Clear Browser Cache
After making these changes, you may need to clear your browser cache to ensure the updated logo and title appear correctly when you reload your application. Refer to the previous response on how to clear your browser cache for different browsers.

3. Update the Title and Description:

To change the app's title and description, you can edit the public/index.html file. Open the index.html file and locate the

and tags, which you can modify as needed.

index.html

<!DOCTYPE html>










  name="description"<br>
  content="Your App Description Here"<br>
/&gt;<br>
Your App Title<br>
Enter fullscreen mode Exit fullscreen mode



<!-- Rest of the HTML content -->



*4-Test Your App

Run your React app using npm start to see the changes take effect in your local development environment.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay