From 01e3ff70aaea04989a37b781ab3d10f64b5124ab Mon Sep 17 00:00:00 2001 From: Humberto Piaia Date: Sun, 7 Apr 2024 17:13:15 -0300 Subject: [PATCH] docs: fix wrong import example --- docs/api/react/useField.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/react/useField.md b/docs/api/react/useField.md index a889e84b..2273be0d 100644 --- a/docs/api/react/useField.md +++ b/docs/api/react/useField.md @@ -33,7 +33,7 @@ The form metadata. It is the same object as the one returned by the [useForm](./ You can use the `FieldName` type instead of `string` to improve the type inference of the field and form metadata returned. ```tsx -import { type FormName, useFormMetadata } from '@conform-to/react'; +import { type FieldName, useField } from '@conform-to/react'; type ExampleComponentProps = { name: FieldName;