Reactjs: Form action method and onSubmit
If you tell the program to e.preventDefault()
, then he won't execute the normal redirect, which we are all waiting for.
So vice versa you have to remove it to redirect the user afterward. Only preventDefault()
if the E-Mail is incorrect.