How would you reverse it outside the function? With hooks, everything goes bye-bye on every render if you don't store it the "React way".   And you don't need to use state. A ref is fine, but it adds more noise to your code because you have to use .current.  https://codesandbox.io/s/react-hover-forward-ref-pthnx    
    • Like
    4