title: Module not found: Error: Cannot resolve module '***.jpg'
body: <p>I want to use <code>img src=</code> to show the image, but eventually failed. I have tried the following methods, but none of these worked:</p>
  
  <p>1.</p>
  
  <pre><code>var  logo = require('img/logo.jpg');
  ...
  &lt;img src={logo} alt="" /&gt;
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>import logo from 'style/ydg_logo.jpg';
  ...
  &lt;img src={logo} alt="" /&gt;
  </code></pre>
  
  <p>3.</p>
  
  <pre><code>&lt;img src={require('img/logo.jpg')} alt="" /&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Module not found: Error: Cannot resolve module 'style/ydg_logo.jpg' </p>
  </blockquote>