AppmakerDeveloper

useRegister

This hook is used to get handle register functionality.

propsTypeDescriptionExample
controlObjectThis is the react-hook-form control object
handleSubmitFunctionhandle submit
formStateObjectThis is the react-hook-form formState object
submitRegisterFunctionsubmit register
isLoadingBooleanloading statefalse

Usage

import { useRegister } from '@appmaker-xyz/shopify';

const {
  control,
  handleSubmit,
  formState,
  submitRegister,
  isLoading,
} = useRegister();

On this page