Skip to content

Commit

Permalink
docs: fix wrong import example (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpiaia authored Apr 8, 2024
1 parent 1964a39 commit f955e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/react/useField.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The form metadata. It is the same object as the one returned by the [useForm](./
You can use the `FieldName<FieldSchema, FormSchema, FormError>` 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<FieldSchema, FormSchema, FormError>;
Expand Down

0 comments on commit f955e1c

Please sign in to comment.