Hey Coder,
can someone tell me why the following code is valid:
handleSubmit(event) {
event.preventDefault();
this.setState({
input: ‘’,
submit: this.state.input
});
}
My understanding is, that the eventhandler resets the input-state and submits the input-state.
Will the reset appear after the submit is executed?
My mind can`t understand the progress.
Best regards
T.B.
