title: Using returned values from static React function
body: <p>I am trying to do the following in a React + Webpack project with javascript Ecmascript 6 support:</p>
  
  <pre><code>class ApiCalls extends React.Component{
    static uploadFiles(files) {
      // upload code
      if(success) {
        return(true, message);
      }
      else {
        return(false, message);
      }
    }
  }
  export default ApiCalls;
  </code></pre>
  
  <p>Then in my calling component I call the method like this:</p>
  
  <pre><code>import ApiCalls from './ApiCalls';
  class HomePage extends React.Component {
    ...
    handlePost(files) {
      ApiCalls.uploadFiles(files) = ((success, message) =&gt; {
        if (success) {
          console.log('Success! ' + message);
        }
        else {
          console.log('Error! ' + message);
        }
      }
    }
    ...
    render()
    ...
  }
  export default HomePage;
  </code></pre>
  
  <p>With the above code I am getting the following error:</p>
  
  <pre><code>Invalid left-hand side in assignment expression
  </code></pre>
  
  <p>with arrow pointing to ApiCalls.</p>
  
  <p>What am I doing wrong?</p>