Arrow function to the rescue?
React — to Bind or Not to Bind
Luka Bracanovic
443

I think worth a mention here is to use arrow functions as a class property initializer to define the function on the class, then the context of the class does not depend on how it is called. This is coming a future version of ES.

Show your support

Clapping shows how much you appreciated Jeremy Gayed’s story.