Mouse position hook for React.
useMouse returns a single object containing the mouse position.
Returned object attributes | Type | Description |
---|---|---|
x | int | X position of mouse |
y | int | Y position of mouse |
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!