title: How to export imported object in ES6?
body: <p>The use case is simple: I just want to export an object with the name just as it was imported.</p>
  
  <p>for example:</p>
  
  <pre><code>import React from 'react';
  export React;
  </code></pre>
  
  <p>but this does not work. I have to write:</p>
  
  <pre><code>import React from 'react';
  export const React = React;
  </code></pre>
  
  <p>But this is odd. What is the right way to do this?</p>
  
  <p><strong>UPDATED</strong>:</p>
  
  <p>Thanks for helps and references. I have solved out my problem with many clues. I'd like to share some common cases for me and the solutions.</p>
  
  <h3>export imports</h3>
  
  <pre><code>import d, {obj} from '...';
  
  export {obj, d};
  export {obj as name1, d as name2};
  </code></pre>
  
  <h3>re-export all named imports</h3>
  
  <pre><code>export * from '...';
  export * as name1 from '...';
  </code></pre>
  
  <h3>re-export some named imports</h3>
  
  <pre><code>export {a, b as name1} from '...';
  </code></pre>
  
  <h3>re-export default import as default export</h3>
  
  <pre><code>export {default} from '...';
  </code></pre>
  
  <h3>re-export default import as named export</h3>
  
  <pre><code>export {default as name1} from '...';
  </code></pre>