how to add image path in react component code example Example: how to write img jsx <img src={window.location.origin + '/img/myImage.png'} />