//event handling using currying const handleChange = (fieldName) => (event) => { saveField(fieldName, event.target.value)}<input type="text" onChange={handleChange('email')} ... />