ESLint Rule - No .bind() or Arrow Functions in JSX Props
<... onClick={this.handler.bind(this)} .../>
<... onClick={() => this.handler()} .../>
<... onClick={::this.handler} .../>
constructor(props) {
this.handler = this.handler.bind(this)
}
...
<... onClick={this.handler} .../>
handler = (e) => {
...
}
...
<... onClick={this.handler} .../> .../>
@autobind
handler() {
...
}
...
<... onClick={this.handler} .../>