score:4

Accepted answer
const handleChange = name => event => {
  setValues({...values, [name]: event.target.value});
}

Related Query

More Query from same tag