Mouse Follower
✓ Published1🌍 Public
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.
MIT Licensed