I am trying to fetch the right image based on current state in my function, but for some reason everything works, just images are not available in browser and I have no idea why.
const [firstImage, setFirstImage] = useState(1); //name of the image is 1.png
Returning an image - the path is of course correct:
<img src={`../assets/images/${firstImage}.png`}/>
question from:
https://stackoverflow.com/questions/65939247/not-showing-images-in-browser-react 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…