react-use-hover-direction

A custom hook to retrieve hover direction on mouseover.

Source