React-Hook-Form watercooler
July 31, 2019 at 1:06amReact-Hook-Form watercooler
July 31, 2019 at 1:06amOctober 24, 2019 at 10:47pm
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?
The method I'm using right now is not very good is there a right way?
nope, it is included in the document in the register part of API section.
November 7, 2019 at 10:00pm
Have you considered using https://www.npmjs.com/package/classnames
thanks, I'll look it
This conversation has been locked