Skip to content

How do I set window with useMouse() ? #203

@s7tya

Description

@s7tya

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&lt;T&gt; &#124; T &#124; null</code> | Yes | The React ref, `window`, or HTML element to add the event listener to |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions