Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 currying

//event handling using currying
const handleChange = (fieldName) => (event) => {  saveField(fieldName, event.target.value)}<input type="text" onChange={handleChange('email')} ... />
Source by blog.benestudio.co #
 
PREVIOUS NEXT
Tagged: #currying
ADD COMMENT
Topic
Name
1+6 =