I am trying to import and use an image but no matter what path i try it won’t recognize the images.
enter image description here
enter image description here
I even right clicked and did copy path and copy relative path. I tried change where in the directory it was in.
2
Answers
there is an extension on vscode to check if the import of the image is correct, if it’s the preview of the image will show like this:
This is the extension, make sure that your image is showing like the mine
Try import image source is to obtain image source url.
and pass this tigerImage as src value