Saturday, August 22, 2020

React - handleChange() - using event.persist() and computed property names

Using event.persist() and computed property names

handleChange = ({event, value}) => {
  event.persist();
this.setState({[event.target.name]: value});
}

No comments:

Post a Comment

Followers

Blog Archive