Hi there!
It’s probably a stupid topic but I need some help why I can display the image.
The images are stored inside assets/images
Thank you
P.
Hi there!
It’s probably a stupid topic but I need some help why I can display the image.
The images are stored inside assets/images
Thank you
P.
This may depend a little on how the project is setup, but in general I usually find that importing the image at the top and then referring to it works. Like this:
// near the top of the file with the other imports
import catImage from "./assets/images/mr-whiskerson.png"
// and then farther down
<Contact
img={catImage}
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.