title: Javascript ES6 (React) How to use a method of an imported class?
body: <p>Using javascript ES6 (React), I'm not able to call a simple method of an imported class.</p>
  
  <p>What's wrong with this code?</p>
  
  <blockquote>
    <p>TypeError: <strong>WEBPACK_IMPORTED_MODULE_1__Seed</strong>.a.test is not a
    function</p>
  </blockquote>
  
  <pre><code>// App.js
  import React from 'react';
  import Seed from './Seed';
  
  class App extends React.Component {
  
    constructor(props) {
      super(props);
      console.log('start1');
      Seed.test();
    }
  
    render() {
      return("ei");
    }
  
  }
  
  export default App;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>// Seed.js
  import React from 'react';
  
  class Seed extends React.Component {
  
    constructor(props) {
      super(props);
      console.log('seed1');
    }
  
    test() {
      console.log('seed test');
    }
  
  };
  
  export default Seed;
  </code></pre>