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

Remove arrow functions from React components #192

Closed
goenning opened this Issue Nov 26, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@goenning
Copy link
Member

goenning commented Nov 26, 2017

Based on recent findings, using arrow functions on React components may use more memory than simple class methods.

1 - Use class methods with bind on constructor
2 - Use class arrow method (no bind required)

@goenning goenning changed the title Remove closures from React components Remove arrow functions from React components Mar 9, 2018

@goenning goenning added this to the v0.14: April/2018 milestone May 29, 2018

@goenning goenning closed this in #410 Jun 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment