xxxxxxxxxx
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
xxxxxxxxxx
<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />
<img src={window.location.origin + '/yourPathHere.jpg'} />
xxxxxxxxxx
<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />
<img src={window.location.origin + '/yourPathHere.jpg'} />
xxxxxxxxxx
const images = importAll(require.context('./images', false, /\.(png|jpe?g|svg)$/));
<img src={images['doggy.png']} />