Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

createFormHook.md

36 lines939 Bytes

function createFormHook<TFormComponents, TFieldComponents>(createOptions): AppFormHookResult<{
  fieldComponents: TFieldComponents;
  formComponents: TFormComponents;
}>;

Defined in: packages/preact-form/src/AppForm/createFormHook.public.ts:14

Type Parameters

TFormComponents

TFormComponents extends Record<string, FunctionComponent<any>>

TFieldComponents

TFieldComponents extends Record<string, FunctionComponent<any>>

Parameters

createOptions

CreateFormHookOptions<TFormComponents, TFieldComponents>

Returns

AppFormHookResult<{ fieldComponents: TFieldComponents; formComponents: TFormComponents; }>