I have installed React using create-react-app. It installed fine, but I am trying to load an image in one of my components (Header.js, file path: <
create-react-app
Header.js
In order to load local images to your React.js application, you need to add require parameter in media sections like or Image tags, as below:
require
image={require('./../uploads/temp.jpg')}