how to get element from state dynamically 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 });
},