Created
December 8, 2018 20:07
-
-
Save leslie-alldridge/99524749e6da0c614a54deab4f4b6a1b to your computer and use it in GitHub Desktop.
combine react binds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["lap", "update", "reset", "toggle", "spacebarListener"].forEach(method => { | |
this[method] = this[method].bind(this); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment