Home > Back-end >  When I try to rename a favicon in a react project to "favicon.ico" the icon changes to rea
When I try to rename a favicon in a react project to "favicon.ico" the icon changes to rea

Time:05-07

before renaming

After renaming same file

without naming the file "favicon.ico" is there any other option to add favicon to a react project ?

CodePudding user response:

Check all the modules being loaded in your client app and see if any are importing the logo:

import logo from '../logo.svg';

Your default favicon might be being overridden by the React things

CodePudding user response:

This is a problem that can occur when in development. When building the project, it will load at the new favicon. If that doesn't work the case may be with browser cookies, try erasing your cookies and then the new favicon will show.

lmk if this didn't help.

  • Related