News for hackers. Stuff that matters.
Re:What’s New in ES2019 by dntrkv on Tuesday July 30, 2019 @12:25PM (#20566405)
Arrow functions aren't just new syntax, they keep the context in which they are declared.

It allows devs to do the following:

onClick={() => doSomething()}

Without having to worry about binding the function to the correct context.

There are no comments on this comment yet.