adding img tag in react code example
Example 1: img src in react js
import Logo from “./logo.png”;
<img src={Logo}/>
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'