react image from src folder code example
Example 1: react js image path src from local folder
// Assuming logo.png is in the same folder as JS file
import logo from './logo.png';
// ...later
<img src={logo} alt="logo" />
Example 2: react src images from public folder
<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />