How can I check and see if the cursor is over an element? I know there is an event onMouseOver and onMouseEnter, but if the cursor is over the element on page load, the event doesn't fire.
So how can I check to see if the cursor is over an element, probably in the useEffect function.