title: Import SVG as a component in Gatsby
body: <p>I've seen the following solution:</p>
  <pre><code>import { ReactComponent as Img } from 'path/to/file.svg'
  </code></pre>
  <p>But in Gatsby, this doesn't work. I know exist plugins for this, but maybe it can be done more easily.</p>