npm install --save use-list
import { useList } from 'use-list'
https://codesandbox.io/s/inspiring-water-uq7g4
Inputs | README |
---|---|
addItem | For adding item in the list |
deleteItem | For deleting first item in the list |
deleteItems | For deleting selected item(s) in the list |
sortItems | For sorting item(s) in the list |
filterItems | For Filtering item(s) in the list |
toggleSelectItem | For getting details of selected item(s) in the list |
toggleSelectAllItems | For getting details of all selected item(s) in the list |
MIT © Shreyash-Atal
This hook is created using create-react-hook.