|
Download react-use/docs/useMouseWheel.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/docs/useMouseWheel.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-use/docs/useMouseWheel.md
-
curl -L -o useMouseWheel.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/docs/useMouseWheel.md
278 Bytes
| # `useMouseWheel` | |
| React Hook to get deltaY of mouse scrolled in window. | |
| ## Usage | |
| ```jsx | |
| import { useMouseWheel } from 'react-use'; | |
| const Demo = () => { | |
| const mouseWheel = useMouseWheel() | |
| return ( | |
| <> | |
| <h3>delta Y Scrolled: {mouseWheel}</h3> | |
| </> | |
| ); | |
| }; | |
| ``` | |