我对reactjs有以下代码:
class Counter extends React.Component {
constructor(props) {
super(props);
this.state = { count: 0};
}
incrementCount() {
this.setState( {count: this.state.count + 1});
}
render() {
return (
<div> Count:{this.state.count}
<button type="button" style={btnCSS}
**onClick={ this.incrementCount.bind(this) }>React</button>**
</div>
);
}
};
在语句onClick = {this.incrementCount.bind(this)}&gt; React第一个'this'引用按钮而第二个'this'引用onClick事件?