img jsx code example
Example 1: how to write img jsx
<img src={window.location.origin + '/img/myImage.png'} />
Example 2: img src in react js
import Logo from “./logo.png”;
<img src={Logo}/>
<img src={window.location.origin + '/img/myImage.png'} />
import Logo from “./logo.png”;
<img src={Logo}/>