0
In React images should be imported when the file is local, a clear example:
import img from './assets/BeTheHero.png';
and in the code part pass this variable
<img src={img} />
and remember that the image should be inside the folder src
to make it work.
Several other examples:
but in case it would have as I take these paths by props?
– Juvenal Bruno Andrade
pq to qrendo uma pagina q images will change according to the button
– Juvenal Bruno Andrade
@Juvenalbrunoandrade can, but your initial question has been answered and the site works like this. Good can open a new question and improve the minimum example. If that answer was sufficient to answer your initial question please tick as answers
– novic