“your text`const authForm = useRef();
const handleSubmit = (e) => {
e.preventDefault();
//formData
let form = new FormData(authForm.current);
console.log(form)
}
This is the code of the form just to show you i did add the ref for authForm
<form ref={authForm} className="w-[80%] max-w-[400px]">....</form>
I did try adding an id on the form and using the document.getElementbyID it still didnt work so help me pls.
I am not fully aware about the reason behind the error still so it would be appreciated if anyone can explain it as well.`