iway1 / react-ts-form

https://react-ts-form.com
MIT License
2.01k stars 33 forks source link

add support for onChange #127

Open jeremyjs opened 1 year ago

jeremyjs commented 1 year ago

in addition to onSubmit. one use case is for a form that auto-saves on every change or blur of a sub-element.

bastibuck commented 1 year ago

You could probably use the watch of react-hook-form like here. Create your form and pass it.

https://react-ts-form.com/docs/docs/usage/form-state https://react-hook-form.com/docs/useform/watch