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