Skip to main content

<Form>

Register a form with a state container.

Properties

PropertyDescription
childrenMust be a React Node
fromWhat store to retrieve state from.
idThe key used to identify this form in the state container
registerRegister states
debugWhen true, log messages regarding state changes will be printed to the console.
verboseWhen true, verbose log messages are printed to the console.
onMountCalled with the current form state when the component mounts.
onUnmountCalled with the current form state when the component unmounts.
initialValuesInitial form values
onValidateValidation callback
onSubmitForm submit callback
onResetForm reset callback
Live Editor
Result
Loading...