scoville / rescript-hook-form

ReScript bindings for the react-hook-form library
2 stars 2 forks source link

Improve the on* callback type signatures #14

Closed gaku-sei closed 3 years ago

gaku-sei commented 3 years ago

First pr related to the big refactor: Improve the on callback type signatures*

The new types are closer to the actual code and allows for more flexibility. Not only is onChange easier to call even without event, but it can now be used to update the value, no need for setValue!

gaku-sei commented 3 years ago

Dropped handleEvent 👍