🌍 Public
Viewing a saved revision (read-only)
34064b54b92c4e888b8d5f4d3b297abf
Mouse Follower
A yellow circle with a black outline follows the mouse cursor across an SVG canvas in real time. The React app tracks pointer movements via an `onMouseMove` event handler, storing the cursor’s client coordinates in state with `useState` and `useCallback`. D3 v7 is loaded for potential utility, though the core interaction relies on React’s rendering. The circle’s center position updates reactively, creating a direct, responsive visual link between input and output.
AI-generated descriptionA program that follows your mouse with a circle.