get iamge from local reactjs 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: 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" />