useRegister
This hook is used to get handle register functionality.
props | Type | Description | Example |
---|---|---|---|
control | Object | This is the react-hook-form control object | |
handleSubmit | Function | handle submit | |
formState | Object | This is the react-hook-form formState object | |
submitRegister | Function | submit register | |
isLoading | Boolean | loading state | false |
Usage
import { useRegister } from '@appmaker-xyz/core';
const {
control,
handleSubmit,
formState,
submitRegister,
isLoading,
} = useRegister();