News for hackers. Stuff that matters.
Re:Ask HN: Did you switch from React to Vue last year due to... by eschutte2 on Thursday January 11, 2018 @03:15AM (#16122210)
The important thing is that the ES7 property initializer with the arrow syntax binds the function's "this" to the instance.
Re:Ask HN: Did you switch from React to Vue last year due to... by lwansbrough on Thursday January 11, 2018 @11:40AM (#16125268)
I understand that, but that’s not necessarily acceptable if it makes debugging a nightmare.

Apparently there is also a bind decorator, which I think is nicer than either of the other methods, because it is explicit but also clear, and without the verbosity.