Skip to content

Instantly share code, notes, and snippets.

@hg-pyun
Created September 16, 2018 12:50
Show Gist options
  • Select an option

  • Save hg-pyun/b3fe9ff5af66c33ec0ead005e0f00164 to your computer and use it in GitHub Desktop.

Select an option

Save hg-pyun/b3fe9ff5af66c33ec0ead005e0f00164 to your computer and use it in GitHub Desktop.

Revisions

  1. hg-pyun created this gist Sep 16, 2018.
    3 changes: 3 additions & 0 deletions currying.12.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    // react
    const handleChange = (fieldName) => (event) => {aveField(fieldName, event.target.value)}
    <input type="text" onChange={handleChange('email')} ... />