Submitting form with Axios
Or is this not the right way to go?
Let's say, I have a login form, which should validate on client side if username and password were entered. Then I would pass the data to the onSubmit function and send it to the server where it is also validated and a token is created and returned if the user is valid. Or otherwise an error should be returned.
Thank you if you can help me.