Mouse follower
✓ Published1🌍 Public
A circle follows the mouse cursor across an SVG canvas, creating a simple interactive visual response. The React application tracks cursor position through an `onMouseMove` event handler, updating state via the `useState` and `useCallback` hooks, and renders the circle using D3 v7 within an SVG element. The circle’s center coordinates are dynamically bound to the latest mouse position, with a fixed radius of 30 pixels.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed