diff --git a/docs/useMouse.md b/docs/useMouse.md index 66bd9b7de8..bb9919037a 100644 --- a/docs/useMouse.md +++ b/docs/useMouse.md @@ -9,7 +9,7 @@ import {useMouse} from 'react-use'; const Demo = () => { const ref = React.useRef(null); - const {docX, docY, posX, posY, elX, elY, elW, elH} = useScroll(ref); + const {docX, docY, posX, posY, elX, elY, elW, elH} = useMouse(ref); return (