Created
November 10, 2018 00:40
-
-
Save Board-Ape/dcb7ca0ef1fdfcb2c332d3f13b3881dc to your computer and use it in GitHub Desktop.
Curry Examples
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
// JS bind method | |
function.prototype.bind() | |
// React/Redux | |
export default connect(mapStateToProps)(ToDoApp) | |
// Reusable Even Handling | |
const handleChange = (fieldName) => (event) => { | |
saveField(fieldName, event.target.value | |
} | |
<input onchange={handleChange('submitButton')} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment