In this article we would like to show you how to change default logo image in React project.
By default logo is located under path
src/logo.svg and it's imported in
To change the logo we can one of the below solutions:
- Solution 1: Replace
src/logo.svgfile with a new one.
- Solution 2: Choose new image with
.pngextension, let's say
example.png, put it inside the
src/folder and import it in
logo.svgwith your file name.
example.png it will be:
import logo from './example.png';