React-Hook-Form watercooler
July 31, 2019 at 1:06amReact-Hook-Form watercooler
July 31, 2019 at 1:06amOctober 19, 2019 at 9:48pm
October 24, 2019 at 8:52pm
Quick question: What's the difference between
getValues()
and watch()
? Is there a reason to use one over the other?(apart from the fact that you can specify which field you want with
watch
)because it doesn't subscribe to the input
watch() is when you want to watching some input all the time
October 28, 2019 at 2:15am
hey
check out the validate function
at the bottom of the talbe
you can have multiple validation rules attached to your input
October 31, 2019 at 9:36pm
November 7, 2019 at 4:53am
Thanks . The document is not clear about, validate can be an object. I thought it could only be a function.
How do I change the style/className of input when an error is displayed?
This conversation has been locked