TypeError: undefined is not an object (evaluating 'this.__reactAutoBindMap')
问题 I am working with the latest version of react.js installed by NPM. I've written this code which works when I put it through jsfiddle, but not when I try it in my own setup. Here is the code I'm working with: /** @jsx React.DOM */ var React = require('react'); var MyButton = React.createClass({ render: function(){ return ( <button onClick={this.props.onClick} >more!</button> ); } }); var Count = React.createClass({ getInitialState: function(){ return { counter: 0 }; }, increment: function(){