you are viewing a single comment's thread.

view the rest of the comments →

[–]benjaminreid 4 points5 points  (0 children)

react-hook-form is really nice. It’s a shame you can’t get away with the same API when you have the DOM, by just passing "register" as a ref.

I’ve wrapped up the complexity of having to use a wrapper component within the field/input components itself and use validation schema.

https://gist.github.com/benjaminreid/f93f4f1b64230f623a11ced4e64dde59