Mouse Follower
✓ Published2🌍 Public
A black circle follows the mouse cursor across a fixed 960x500 SVG canvas, remaining centered on the pointer’s exact position. Built with React’s `useState` and `useCallback`, the app listens to the SVG’s `onMouseMove` event, updates the circle’s `cx` and `cy` coordinates, and re-renders accordingly. D3 v5 is loaded but not directly used in the visible logic, while React produces the SVG elements and manages state updates.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed