Development of useHover Hook for Mouse Hover Detection #13
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CosmicCoder-sudo/react-hook-kit#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
The goal of this issue is to develop a useHover custom hook in our codebase that will enable us to determine if the mouse cursor is hovered over a specific component or element.
Details:
Currently, our codebase lacks a convenient, reusable way to detect whether a cursor is hovering over a component. Creating a useHover hook would improve the user experience and allow for more interactive components.
The expected behavior of this hook is:
Accept a ref as an input.
Return a boolean indicating whether the cursor is currently hovering over the element corresponding to the provided ref.
Tasks:
Develop the useHover hook according to the specifications.
Write unit tests to ensure the hook functions as expected.
Document the hook's functionality, usage, and provide examples.
Ensure the hook is performant and does not cause unnecessary re-renders.
Acceptance Criteria:
The hook accurately detects when the cursor is hovering over the component it is attached to.
The hook has comprehensive unit tests which pass.
The hook is properly documented.
The hook does not impact overall app performance.