useLogin
This hook is used to get handle login 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 | |
submitLogin | Function | submit login | |
isLoading | Boolean | loading state | false |
Usage
import { useLogin } from '@appmaker-xyz/core';
const {
control,
handleSubmit,
formState,
submitLogin,
isLoading,
} = useLogin();