📅  最后修改于: 2022-03-11 15:03:03.340000             🧑  作者: Mango
onSubmitHandler = (e) => {
e.preventDefault();
this.setState({
showName: true
});
if(this.state.showName){
// submitting the form conditionally with javascript
document.getElementById("nameForm").submit();
}
}
render() {
return (
);
}