use-all-hook
v0.2.7
Published
"use-all-hook" is a react hooks package for a lot of hooks in the future.
Downloads
80
Maintainers
Readme
"use-all-hook" is a react hooks package for a lot of hooks in the future.
Installing
If using npm
npm i use-all-hook
If using yarn
yarn add use-all-hook
Require them
import AllHooks from "use-all-hook";
or
import {
useAsync,
useFetch,
useScript,
useToggle,
useArray,
useEventListener,
useSize,
useTimeout,
useDeepCompareEffect,
useOnScreen,
useMediaQuery,
} from "use-all-hook";
or
The same way but the hooks you need.
import { useAsync, useFetch } from "use-all-hook";