title: Absolute Beginner React Button Axios
body: <p>I'm using <a href="https://github.com/facebookincubator/create-react-app" rel="nofollow noreferrer">create-react-app</a> and attempting to modify the App.js file to have a button that has an onclick method that makes an axios HTTP request. I have been trying this for a couple weeks and the error I've gotten the most has been unexpected token in my handleClick(e). <a href="https://codepad.co/snippet/l0TM5fRk" rel="nofollow noreferrer">I tried this</a> and I don't understand why it won't compile:</p>
  
  <pre><code>// Example React.js Component
  
  var ButtonComponent = React.createClass({
      getInitialState: function() {
          return {
              numClicks: 0
          }
      }
     click: function() {
          this.setState(numClicks: this.state.numClicks + 1);
      },
      render: function() {
         return  (
          &lt;div&gt;
              &lt;button onClick={this.click.bind(this)}&gt;Click Me&lt;/button&gt;  
              {this.state.numClicks}
          &lt;/div&gt;
         );
     } 
  });
  </code></pre>
  
  <p>If anyone could provide some help I would really appreciate it. I just want to be able to render components that can make requests to my express app.</p>