useMultipleForm
useMultipleForm(callback: Function)
provides the logic to handle the implementation of wizards.
const [getWizardStatus, wizardApi] = useMultipleForm(callback);
Returns
(helpers
): array
An array that holds:
getWizardStatus
: a function that returns the actual state of the wizard.wizardApi
: an object which holds the props that must be spread in each form.
Basic usage
import { Form, Input, useMultipleForm } from 'usetheform'
- {} 0 keys
- {} 0 keys
{}