React 求助

#1

import React, { Component } from ‘react’;
class ClickCounter extends Component {
constructor(props){
super(props);
this.onClickButton = this.onClickButton.bind(this);
this.state = {count:159};
}
onClickButton() {
this.setState({ count: (this.state.count + 1) });
}

render(){
	return(
		<div> 
		  <button onClickButton={this.onClickButton}>Click Me</button>
		  <div>
		  Click Count: { this.state.count }
		  </div>
		</div>
	);
}

}
export default ClickCounter;

我的按钮组件没有反应

#3

button里onClickButton改成onClick就行了

#4

搞定了,谢谢你