image attributes react code example
Example 1: how to write img jsx
<img src={window.location.origin + '/img/myImage.png'} />
Example 2: import img react in another file
//import imgs in a different js file
import lostImage from './assets/img/illustrations/lost.svg';
export { lostImage };
//import in the component to use it
import {lostImage} from './images.js'