MCPcopy Create free account
hub / github.com/Klerith/react-hooks / onMouseMove

Function onMouseMove

src/02-useEffect/Message.jsx:9–12  ·  view source on GitHub ↗
({ x, y })

Source from the content-addressed store, hash-verified

7 useEffect(() => {
8
9 const onMouseMove = ({ x, y }) => {
10 // const coords = { x, y };
11 setCoords({ x, y })
12 }
13
14 window.addEventListener( 'mousemove', onMouseMove );
15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected