this.setState({name: event.target.value}) code example
Example: event.target.name in setstate
inputChangeHandler: function ({ target: { id, value }) {
this.setState({ [id]: value });
},
inputChangeHandler: function ({ target: { id, value }) {
this.setState({ [id]: value });
},