title: React.js :You called `setState` with a callback that isn't callable
body: <p>This is my piece of code, which works correctly (adds records), but throws an error after addition:</p>
  
  <blockquote>
    <p>Uncaught Error: Invariant Violation: enqueueCallback(...): You called
    <code>setProps</code>, <code>replaceProps</code>, <code>setState</code>, <code>replaceState</code>, or
    <code>forceUpdate</code> with a callback that isn't callable.</p>
  </blockquote>
  
  <pre><code>handleSubmit: function(e) {
      e.preventDefault();
      return $.post('', {page: this.state},
        function(data) {
          this.props.handleNewPage(data);
          return this.setState(this.getInitialState(), 'JSON');
        }.bind(this)
      );
    }
  </code></pre>
  
  <p>There are no routes for now. Can someone help me to solve this?</p>