🌍 Public
Viewing a saved revision (read-only)
b820af34d93044e4ab4b7364f6a55310
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