From ddd45e29745b73e7fe1684e197dcff598b375644 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 3 Nov 2023 19:34:16 +0100 Subject: feat(hooks): add an useForm hook * add two "sub"-hooks: useFormValues and useFormSubmit (that can be used independently) * handle initial data * handle custom submit callback * handle data validation * handle submit status --- src/utils/hooks/index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index 9181b6a..9cc2b0f 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -5,6 +5,7 @@ export * from './use-boolean'; export * from './use-breadcrumb'; export * from './use-comments'; export * from './use-data-from-api'; +export * from './use-form'; export * from './use-github-api'; export * from './use-headings-tree'; export * from './use-is-mounted'; -- cgit v1.2.3