Mouse Follower
✓ Published1🌍 Public
A single black circle follows the mouse as it moves across an SVG canvas. The React component tracks pointer coordinates through an `onMouseMove` event handler and updates the circle’s `cx` and `cy` attributes via React state. The example imports the `arc` function from d3 but does not use it, relying instead on plain SVG rendering and React’s `useState` and `useCallback` hooks for interactivity.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed