- useOneArray<T>(initialValue?): readonly [T[], Dispatch<SetStateAction<null | T[]>>]
Parameters
Optional
initialValue: null | T[] | (() => T[])
Returns readonly [T[], Dispatch<SetStateAction<null | T[]>>]
- A tuple containing the managed array and a function to update it
Hook that manages an array of data.