where to add image folder in react project code example
Example 1: how to load the images from the website dynamically in react
const images = require.context('../../public/images', true);
// adding dynamic paths
let dynamicImage = images(`./${someVariable}.png`);
// static image
let staticImage = images('./image.png');
Example 2: how to load image in react js
//How to import an image in react js
import image from './image-path';
<img src={image} alt="Write something here" />