Tbh I find the ES7 ‘abuse’ of arrow functions to do above binding in React one of the less intuitive features that’s up for consideration by ECMA.

It feels more like a hack than good language design. While it works, still think we can think better about how to declare this.

--

--

--

Write about all sorts of stuff. Dev. Sport. Life.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Al Hinds

Al Hinds

Write about all sorts of stuff. Dev. Sport. Life.

More from Medium

What happens when you write google.com

‘After Ever Comfortable’ Film Spoilers, Air Date, Forged Information, and Extra

Better version of you!!

Wake up and smell the opportunities around you.