React: Create a Controlled Form (event handler)

Hey Coder,

can someone tell me why the following code is valid:

handleSubmit(event) {
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

@tb47, which challenge (or other place) do you see this code?

Also, can you wrap your code between ``` like this, so it’s easier to read?


As mentioned in the topic :slightly_smiling_face: