Skip to content

useList ​

utilities
test coverage
Last changed: last month

Hook that provides state and helper methods to manage a list of items

typescript
import { useList } from '@siberiacancode/reactuse';

Usage ​

typescript
const { value, set, push, removeAt, insertAt, updateAt, clear } = useList();

Demo ​

Api ​

Parameters

NameTypeDefaultNote
initialListItem[] | (() => Item[])-The initial list of items

Source ​

Source • Demo

Contributors ​

Avatardebabin
AvatarArtem Dereviago
Avatarhywax

Released under the MIT License.