Performance between CSS :hover and useHover (JS) #5669
Unanswered
boompikachu
asked this question in
Q&A
Replies: 2 comments
-
It seems that whenever I hover enter and leave, the component re-renders but does not if using :hover selector |
Beta Was this translation helpful? Give feedback.
0 replies
-
Check out this blog post: Building a Button Part 2: Hover Interactions. I would suggest looking at the nature of your application and considering whether the re-renders on hover will have a real-world impact on your application's performance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a difference in performance between :hover selector (CSS) and useHover (JS)? If so, is the performance difference noticeable? If there's a big difference, will there be any alternatives since I only use it for styling
Beta Was this translation helpful? Give feedback.
All reactions