How can I get this code to work in React/Gatsby. When I go to build it fails
window.addEventListener("mousemove", move);
window.onload = () => ani