Inside a component I need to know if the browser has a mouse or not, it affects the component.
My plan is to listen for global mousemoves, but I'm not sure how I should do this in react. I could do something like this inside the component:
window.addEventListener('mousemove', onMouseMove, false);
but I'm not sure if it's a good idea. The component will be used lot's of times on the same page, so maybe I should put it in a component of it's own somehow?