Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 869 Bytes

useArrayField.md

File metadata and controls

35 lines (19 loc) · 869 Bytes

@lynxts/coreDocs


@lynxts/core / useArrayField

Function: 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.

Type Parameters

T extends Struct

V

Parameters

path: Path<T, V[]>

the path of the array field in T

Returns

UseArrayField<V>

an object containing the array items and helper array functions

Defined in

hooks/useArrayField.ts:104