r/reactjs • u/Last_Distribution_84 • Dec 17 '23
Discussion Is react hook form overhyped?
I created a custom form validation hook.Its a simple hook and I felt I didn't needed react hook forms for just simple form validation. For simpe validation writing that much code and loading the whole library felt not right. Maybe I am wrong.
0
Upvotes
1
u/sauland Dec 18 '23 edited Dec 18 '23
You can do conditional validation pretty easily by utilizing the
setKeyfunction ofzodschemas. Like this: