The was this was written was confusing too, because normally one would expect a onSubmit function that would be inside the actual AuthForm.jsx, and also it seems unsafe to pass the password in the url?
But I am curious how your form was about to work here and actually redirect to / but in my code, the form did nothing, action was never called, but my url got updated like so:
This is the video I'm on: https://www.udemy.com/course/react-the-complete-guide-incl-redux/learn/lecture/35734204#overview
First, the action function inside of Authentication.jsx does not get called.
The was this was written was confusing too, because normally one would expect a onSubmit function that would be inside the actual AuthForm.jsx, and also it seems unsafe to pass the password in the url?
But I am curious how your form was about to work here and actually redirect to
/
but in my code, the form did nothing, action was never called, but my url got updated like so:http://localhost:5173/auth?email=test%40etetedsfd.com&password=dsfajksdfjasd
My version of the App routes:
And the AuthForm component