why img src is not displaying image in react js code example
Example 1: showing an image in react js
import image from './path-to-image';
<img src={image} height={100} width={100} />
Example 2: images not displaying in react
<img src={process.env.PUBLIC_URL + "/images/dog.png"}
// process.env.PUBLIC_URL is the key here