Skip to content

useList ​

Category
Utilities

Hook that defines the logic when unmounting a component

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

Contributors ​

Source • Demo