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

Method Binding #1

Open
Lucav17 opened this issue Jun 27, 2018 · 0 comments
Open

Method Binding #1

Lucav17 opened this issue Jun 27, 2018 · 0 comments

Comments

@Lucav17
Copy link

Lucav17 commented Jun 27, 2018

I noticed in your app.js you binded all of your methods that affected the state by doing this.function = this.function.bind(this). We can also easily just bind the method where we define it by using the arrow syntax, we can do this by doing function = () => {}

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

1 participant