Hi, I love the content so quick and easy to follow along and even paid for your Animated UI components on your site! I was having issues with the cleanup function firing with the error "Cannot read properties of null (reading 'removeEventListener')" and fixed it by removing it the through the document object instead. Ex: "document.removeEventListener("mousemove", handleMouseMove);" I wasn't following your design to the tee so that could have another thing to do with it since I was implementing my own style of that effect to my own site that I am building. Thanks again for the upload very useful!
Just to make it easier to port to normal JS/other frameworks. You can definitely do it with onMouseMove etc, only change really would be that you'd need to pull offsetX from nativeEvent (e.nativeEvent.offsetX). Seemed like a simple enough interaction though that I'd just use normal event listeners and let it be applicable to those not using react!