useOutsideEvent

A React.js hook which lets you react to DOM events that happen outside a specified element

mousemove
, eventHandler);

Hi!

I’m the container :) Any mousemove events that originate from inside me won’t increment the event counter below.

Event count: 0

Here are some dummy form controls which you can use to verify that keyboard/input events inside the container don’t trigger the event handler.

Here are some more dummy form controls which you can use to trigger keyboard/input events outside of the container.