how to go from source to public to get image in react code example Example: how to write img jsx <img src={window.location.origin + '/img/myImage.png'} />