show message on form submit in react code example
Example 1: how to empty form after submit react
e.target.reset();
Example 2: How to Submit Forms and Save Data with React.js
handleInputChange(event) {
const value = event.target.value;
const name = event.target.name;
this.setState({
[name]: value
});
}