title: How to Import and Export dynamically in ES6
body: <p>In my react component directory, I setted index.js here.</p>
  
  <pre><code>import App from './App';
  import Main from './Main/Main';
  import Best from './Main/Best';
  import Club from './Main/Club';
  import Post from './Main/Post';
  
  import Sidebar from './Sidebar/Sidebar';
  
  export { App, Main, Best, Club, Post, Sidebar };
  </code></pre>
  
  <p>Usage in other js,</p>
  
  <pre><code>import {
      App,
      Main,
      Best,
      Club,
      Post,
      Sidebar
  } from '../scripts/Containers/index';
  </code></pre>
  
  <p>But whenever I make component like that, should I have to write import / export statements index.js there?
  Is there any magical way?</p>
  
  <p>Please help me to solve out this problem!</p>
  
  <h3>Update (with @Bergi)</h3>
  
  <p>I modifed like this, and it works well.</p>
  
  <pre><code>export { default as App } from './App';
  
  export { default as Header } from './Header/Header';
  
  export { default as Main } from './Main/Main';
  export { default as Best } from './Main/Best';
  export { default as Club } from './Main/Club';
  export { default as Post } from './Main/Post';
  
  export { default as Sidebar } from './Sidebar/Sidebar';
  </code></pre>
  
  <p>But this didn't work</p>
  
  <pre><code>export * from './App';
  
  export * from './Header/Header';
  
  export * from './Main/Main';
  export * from './Main/Best';
  export * from './Main/Club';
  export * from './Main/Post';
  
  export * from './Sidebar/Sidebar';
  </code></pre>
  
  <p>In order to works with above code, I changed this in component</p>
  
  <pre><code>export default class Header extends Component {
      constructor(...args) {
          super(...args);
  
      }
  }
  </code></pre>
  
  <p>to</p>
  
  <pre><code>export class Header extends Component {
      constructor(...args) {
          super(...args);
  
      }
  }
  </code></pre>
  
  <p>I deleted <code>export default</code> module exports! And works second export way works(not first one)</p>
  
  <p>Thanks @Bergi :)</p>
  
  <p>But I think that dynamically import / export won't be able to use.</p>
  
  <p>Maybe this is best way I think.</p>