Really want this my code is littered with these. I also want a way to bind methods of JS classes with their own this. I have so many of these in my constructors: this.myfunc = this.myfunc.bind(this)
Event handlers callbacks is the typical case, you can use your syntax or use my syntax binding in the constructor, I think the way I do it is more readable when writing react and view classes. I'd just like a way to do it by default.
1
u/CCB0x45 Feb 20 '18
Really want this my code is littered with these. I also want a way to bind methods of JS classes with their own this. I have so many of these in my constructors: this.myfunc = this.myfunc.bind(this)