how can add png in react.js code example
Example 1: 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'
Example 2: how to use saved image on react
<img alt="timer" src={require('./images/timer.png')} />