(Choose 1 answer)
Fill the blank to handle form submit in React:
class Form extends React.Component { handleSubmit(e) { console.log("submitted");e.preventDefault();}
render() { return (
<form.........={this.handleSubmit}><button>submit</button>
</form>
);
}
ReactDOM.render(<Form />, document.body);
A. onClick
B. onChange
C. onBlur
D. onSubmit
18