jaredLunde / jaredLunde/react-hook
How do I set `window` with `useMouse()` ?
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
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.
https://github.com/jaredLunde/react-hook/blob/6c076415273124feffd5c1aae62152e1b199749f/packages/mouse-position/README.md?plain=1#L74
Contributor guide
Research direction
Start with packages/mouse-position/README.md around the referenced line and inspect the useMouse API and its target options. Clarify whether and how window can be used as the target, then update the documentation with a concrete usage example and verify that the README answers the question.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100