How to change the favicon in React
In this tutorial, we are going to learn about how to change the default favicon in react app, which is set by the create-react-app
CLI.
Changing the favicon
-
Open the react app in your favorite code editor.
-
Navigate to the public folder and delete the
favicon.ico
file. -
Now, add a new favicon inside the
public
folder.
Note: The favicon filename should be
favicon.ico
, like in the above screenshot.
- Reload your app to see the new favicon.