function Field<TParentData, TName, TFieldValidator, TFormValidator, TData>(__namedParameters): ReactNode
A function component that takes field options and a render function as children and returns a React component.
The Field
component uses the useField
hook internally to manage the field instance.
• TParentData
• TName extends string
| number
• TFieldValidator extends undefined
| Validator
<DeepValue
<TParentData
, TName
>, unknown
> = undefined
• TFormValidator extends undefined
| Validator
<TParentData
, unknown
> = undefined
• TData = DeepValue
<TParentData
, TName
>
• __namedParameters: FieldComponentProps
<TParentData
, TName
, TFieldValidator
, TFormValidator
, TData
>
ReactNode
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.