-
while studying, I found this.. It looks like the field name in I think <label>Age</label>
<input type="number" {...register("age", { min: 50 })} />
{errors.age && <p>{"The number must be greater then 49"}</p>} not <label>Age</label>
<input type="number" {...register("age", { min: 50 })} />
{errors.name && <p>{"The number must be greater then 49"}</p>} cause, it is the part that shows the error related to the "age". JS CodeSandboxTS CodeSandboxwhat do you think about it? tell me your opinions. +) I can't speak English well, so I used a translator. 🥲 |
Beta Was this translation helpful? Give feedback.
Answered by
Moshyfawn
Aug 20, 2022
Replies: 1 comment
-
You're correct! Thank you for spotting it; I've fixed it just now. Good studies to you! P.S. don't worry worry about your English ;) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LydiaYoon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're correct!
Thank you for spotting it; I've fixed it just now.
Good studies to you!
P.S. don't worry worry about your English ;)