-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question]: How can I combine useMeasure with useHoverDirty #2538
Comments
import useRef from 'react'; function YourComponent() { // Attach the ref to the DOM element obtained from useMeasure // Now, you can use the hoverRef for the UseHoverDirty hook |
I have to listen the container's rect changed, and get the hover state. I get this code:
How to get the ref by useMeasure and transit it into useHoverDirty?
The text was updated successfully, but these errors were encountered: