I am learning hook form
when I use handlesubmit function of it and a function as code line 12, everything is fine
but when I want to create this logic as a function which is in line 6 , I face the error that the type of data is not define .however when I check the line 12, the type of data is the same as what I type in line 6.
Does anybody know the reason?