I have a question relavent to this code: https://github.com/reactjs/redux/blob/master/examples/async/containers/App.js
specifically:
constructor(props) {
super(props)
this.handleChange = this.handleChange.bind(this)
this.handleRefreshClick = this.handleRefreshClick.bind(this)
}
I guess its a 2 part question.
- Why do I need to set handle change as an instance of class
this.handleChange =
, can't I just use static functions for handleChange and call it directly with in the classonClick={handleRefreshClick}>
? - I have no idea whats going on here:
this.handleRefreshClick.bind(this)
Thanks