isabellae
v1.0.2
Published
better react hooks
Downloads
8
Readme
isabellae
better react hooks
Usage
Inside your React project directory, run the following:
yarn add isabellae
Or with npm:
npm install isabellae
Use in your hooks like this:
import { useArray } from 'isabellae'
const useUserList = () => {
const [users, { push, remove }] = useArray([])
return [users, { addUser: push, deleteUser: remove }]
}