Hooks
useHover

Import this in your client-side component

MyComponent.tsx
import { useHover } from "react-amazing-hooks";

API

ApiDescriptionTypeReturn TypeExample
useHoverA hook to detect if an element is hovered.Target, OptionsUseOverbooleanconst isHovered = useHover('#myElement', { delay: 200 });

Check the OptionsUseOver in the 'Types' tab.

Check the 'Example' tab above the table for an exhaustive example. *