@lynxts/core • Docs
@lynxts/core / useArrayField
useArrayField<
T
,V
>(path
):UseArrayField
<V
>
A hook to handle array field in the form. It provides the array field items to iterate over and a few helper functions to handle changes and renders on the array.
• T extends Struct
• V
• path: Path
<T
, V
[]>
the path of the array field in T
an object containing the array items and helper array functions