< p>
import logo from'./logo.svg';
{logo}
However, when I import my own svg, the Logo in the same way and try to use it, it will print a URL like this on the screen:
/static/media/menu.92677579.svg
Instead or render the image, can someone help me solve this problem?
If you want To display the image, please use the
Hope this helps!
I have a clean create-react-app installation, and I want to add my own svg image to display, just like displaying a logo, ie:
< /p>
import logo from'./logo.svg';
{logo}
However, when I import my own svg When you import the logo in the same way and try to use it, it will print a URL like this on the screen:
/static/media/menu.92677579.svg
Instead or render the image, can someone help me solve this problem?
When you write (logo), you just embed a URL.
If you want to display an image, please use the tag similar to the default The template does.
Hope this helps!