Define Form
Define form offers alternative typescript bindings for final-form. The key difference is that the form data is now a strongly typed object, rather than an any. This makes the initialValues
config option required.
Installation
yarn add define-form
Usage
; ; // Subscribe to form state updates // Subscribe to field state updates // Submitform.submit // only submits if all validation passes
If you like this, you may also want to check out react-define-form
License
MIT