@lokibai/react-use-hooks
v0.1.4
Published
react hooks
Downloads
1
Readme
@lokibai/react-use-hooks
react hooks
Install
npm i @lokibai/react-use-hooks
Usage
import React from 'react';
import { useBoolean } from '@lokibai/react-use-hooks';
const App = () => {
const [on, toggle] = useBoolean();
const onToggle = () => {
toggle();
};
return <button onClick={onToggle}>{String(on)}</button>;
};
Index
- [x] useMounted
- [x] useBoolean
- [x] useDebounce
- [x] useThrottle
- [x] useCopyClipboard
- [x] useInViewport