Image Is Not Visible (source Is Not Recognized)
I'm making a simple web-app in React.js (+ Spring in back). I have problem with displaying a photo (.img) from local path in function displayItems. Picture is not visible. If i loa
Solution 1:
You will have to get the image using require or import and then use it in the src,
const image = require("../resources/Photos/1.jpg")
...
items.push(<img src={image}></img>);
Post a Comment for "Image Is Not Visible (source Is Not Recognized)"