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