I'm new to react and I'm trying to make my component load an image. I have the following structure:
src/components/menu/myFile.js
src/images/logo.png
Here is myFile.js where I try to load the logo.png
const myFile = (props) => (
<Aux>
<header class="header_main">
<section class="container">
<section class="row">
<section class="col-xs-12 col-sm-6 col-md-6">
<figure class="logo"><a href="#"><img src="../../images/logo.png" alt=""/></a></figure>
</section>
<section class="col-xs-12 col-sm-6 col-md-6">
<ul class="nav_main pull-right">
<li><a href="#">Help</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Sign Up</a></li>
<li><a href="#">Log In</a></li>
</ul>
</section>
</section>
</section>
</header>
</Aux>
);
It is not loading the logo.png and when I check it in the browser using firebug, it says "Could not load the image"

import logoPath from '../../images/logo.png'npx create-react-app my-app. After importing the logoPath, how can I insert it in my img src?