Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ES7 class arrow functions to autobind #2

Open
jeffsheets opened this issue May 18, 2017 · 1 comment
Open

Use ES7 class arrow functions to autobind #2

jeffsheets opened this issue May 18, 2017 · 1 comment

Comments

@jeffsheets
Copy link
Contributor

It was suggest in last workshop to change our components to use ES7 class level arrow functions to eliminate all the binding. To essentially autobind this for us.

Sounds like a good idea to me, even as an experimental ES7 proposal, it would help eliminate a bunch of cruft from our workshop lab files.

http://blog.andrewray.me/react-es6-autobinding-and-createclass/

@meyerds
Copy link
Contributor

meyerds commented May 18, 2018

Playing devil's advocate: https://medium.com/@charpeni/arrow-functions-in-class-properties-might-not-be-as-great-as-we-think-3b3551c440b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants