Is there a way to reset the form and set the state at the same go? I tried the below code and it does not seem to work. Any inputs are appreciated.
<Form
onSubmit={this.onSubmit}
render={({handleSubmit, form, submitting, pristine, values}) => (
<form onSubmit={handleSubmit}>
.
.
.
.
<button
type="button"
onClick={() => {
form.reset;
this.setState({"reset": true});
}}
disabled={submitting || pristine}
>
Reset
</button>
</form>