React does not export its components via ES6 so IntelliJ throws warnings
<p>I am writing a <code>React</code> app using <code>ES6</code> like so</p>

<pre><code>import React, { Component } from 'react';
</code></pre>

<p>I have installed react via <code>npm</code>, business as usual</p>

<pre><code>npm install react --save-dev
</code></pre>

<p>It seems though that <code>React</code> is written using <em>CommonJs</em> as</p>

<pre><code>module.exports = React;
</code></pre>

<p>so IntelliJ (or WebStorm) will throw a warning</p>

<blockquote>
  <p>default export is not declared in imported module</p>
</blockquote>

<p>which is kind of bugging me and also autocompletion won't work. Does anyone have a solution for this?</p>