🌍 Public
Viewing a saved revision (read-only)
55d66c8d6d1c4c2bbb154207d9a12492
Mouse Follower
A circle tracks the mouse cursor across a 960 by 500 SVG canvas, updating its position in real time as the user moves the pointer. The React component uses `useState` to store the mouse coordinates and `useCallback` to handle the `onMouseMove` event, passing the event's `clientX` and `clientY` values to reposition the circle via its `cx` and `cy` attributes. It renders with React 17 and D3 v7.
AI-generated descriptionA program that follows your mouse with a circle