Warning: input: ref
is not a prop. Trying to access it will result in undefined
being returned.
#11625
Unanswered
fuzailxkhan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
VM802:1 Warning: input:
ref
is not a prop. Trying to access it will result inundefined
being returned. If you need to access the same value within the child component, you should pass it as a different prop.This is the error that am getting with a pretty basic form with ref not passed as a prop to the element.
<input {...register("contactName", {required:"Please enter your name."})} type="text" placeholder="Your Name" className="border border-gray-300 rounded-md py-2 px-3" />
The form is working fine and everything i am getting the Enter your name message from errors.contactName , the form is also getting submitted correctly , but this error pops in the console some times need help
Beta Was this translation helpful? Give feedback.
All reactions