Created
February 25, 2020 12:31
-
-
Save theodoregold/1be6c8a350be7cdc6e2762d4d7e6f801 to your computer and use it in GitHub Desktop.
This file contains 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
// two lines are the same | |
agesChanged={this.updateSelections('ages')} | |
agesChanged={(value) => this.updateSelections('ages', value)} | |
// curried example (try in your browser console) | |
const dog = () => () => {} | |
dog() === dog() // will return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment