title: React, page is refreshing constantly
body: <p>I was playing around with react for my first time and ran into some issues. I am creating 3 buttons with values and then executing a function when they're clicked that sends a post request and gets back data which is displayed to the user. For some reason, the _postURL function is being executed infinitely even when I dont click on the buttons. Does anyone know why?</p>
  
  <pre><code>var Test = React.createClass({
  getInitialState: function(){
  
          return { logs: []};
      },
      _postURL: function(name){
          self = this;
          console.log(name);
          $.post("http://localhost:8080/DatabaseDemo/Display.do", {query: name})
              .done(function(data){
                  console.log(data);
                  self.setState({logs: data});
          });
  
      },
      render: function() {
          if(!this.state.logs){
              logs = &lt;p&gt;Choose a log&lt;/p&gt;
          }
          return (
              &lt;div&gt;
                  &lt;form&gt;
                      &lt;button value="api_log_colo2_mysql2_Jan2015" onClick={this._postURL("api_log_colo2_mysql2_Jan2015")}&gt;Jan2015&lt;/button&gt;
                      &lt;button value="api_log_colo2_mysql2_Aug2014" onClick={this._postURL("api_log_colo2_mysql2_Aug2014")}&gt;Aug2014&lt;/button&gt;
                      &lt;button value="api_log_colo2_mysql2_Dec2014" onClick={this._postURL("api_log_colo2_mysql2_Dec2014")}&gt;Dec2014&lt;/button&gt;
                  &lt;/form&gt;
                  &lt;p&gt;{this.state.logs}&lt;/p&gt;
              &lt;/div&gt;
          );          
      }
  });
  </code></pre>