Appearance
useForm()
Hook which accepts FormModel and config as a second argument and returns mapped events and state
Config:
validate
(optional) default is take from createLib paramvalidateOnUseForm
. If set to true callsvalidate
on mount
Returns object:
fields
- result ofuseFields
callonSubmit
- mappedsubmit
eventisSubmitted
- mapped$isSubmitted
store value