The main problem is that console.log formData does not work with React Router.
? console.log(formData);
This code line prints the value of the formData variable to the console.
Contents
console.log
console.log(“Hello, world!”);
formData
FormData is a JSON-based format for representing form data. It can be used with the FormData API or the FormDataReader and FormDataWriter APIs.