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

Move bindings from render to constructor #39

Closed
K-Ho opened this issue Nov 28, 2018 · 0 comments
Closed

Move bindings from render to constructor #39

K-Ho opened this issue Nov 28, 2018 · 0 comments
Assignees

Comments

@K-Ho
Copy link
Member

K-Ho commented Nov 28, 2018

React binds the class method every time the render() method runs, meaning every time the component updates, which will hurt our application’s performance. Binding the class method in the constructor needs to only be done once, when the component is instantiated.

@K-Ho K-Ho self-assigned this Nov 28, 2018
@K-Ho K-Ho closed this as completed Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant