React sensor hooks that re-render on mouse position changes.
useMouse
simply tracks mouse position; useMouseHovered
allows you to specify extra options:
bound
— to bind mouse coordinates within the elementwhenHovered
— whether to attach mousemove event handler only when user hovers over the elementRun the following command: