-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Description
Doing this produce 2 members instead of 2 methods.
This way to bind methods in ES6 is recommanded in React for instance
https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html#autobinding
constructor(props) {
super(props);
this.onConnect = this.onConnect.bind(this);
this.onKeyDown = this.onKeyDown.bind(this);
}
Reactions are currently unavailable