我有一个与此代码相关的问题:https://github.com/reactjs/redux/blob/master/examples/async/containers/App.js
特别:
constructor(props) {
super(props)
this.handleChange = this.handleChange.bind(this)
this.handleRefreshClick = this.handleRefreshClick.bind(this)
}
Run Code Online (Sandbox Code Playgroud)
我想这是一个2部分的问题.
this.handleChange =我不能只使用handleChange的静态函数并直接在类中调用它 onClick={handleRefreshClick}>?this.handleRefreshClick.bind(this)谢谢