use-list
v0.1.3
Published
A React custom hook to manage lists
Readme
use-list
Install
npm install --save use-listUsage
import { useList } from 'use-list'Demo
https://codesandbox.io/s/inspiring-water-uq7g4Methods
| Inputs | README | | ------ | ------ | | addItem | For adding item in the list | | updateItem | For updating 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 |
License
MIT © Shreyash-Atal
This hook is created using create-react-hook.
