Sorry for creating an issue that is not a bug report or feature request.
How do i set window as a target of useMouse() ?
As I read the README, it looks like I can do that, but I couldn't find the way to do so.
|
| target | <code>React.RefObject<T> | T | null</code> | Yes | The React ref, `window`, or HTML element to add the event listener to | |
Sorry for creating an issue that is not a bug report or feature request.
How do i set
windowas a target ofuseMouse()?As I read the README, it looks like I can do that, but I couldn't find the way to do so.
react-hook/packages/mouse-position/README.md
Line 74 in 6c07641