ReactJS and images in public folder

You don’t need any webpack configuration for this..

In your component just give image path. By default react will know its in public directory.

<img src="https://stackoverflow.com/image.jpg" alt="image" />

Leave a Comment