react-hook-dom
v1.0.2
Published
🌋Judge whether the element overflows and can scroll to the hooks collection at the specified position.
Readme
react-hook-dom
🌋Judge whether the element overflows and can scroll to the hooks collection at the specified position.
Getting Started
Install dependencies,
npm i react-hook-domor
yarn add react-hook-domUsage
import { useLoading } from 'react-hook-dom';
const [loading, exector] = useLoading(requestFn);Check the documentation to learn more about hook and its usage.
Hooks
- [x] useLoading
- [ ] useScrollToBottom
- [ ] useScrollToTop
- [ ] useComputeOverflow
- [ ] useScrollTo
If you have more ideas about hooks, please mention issue or pull request.
