🌍 Public
Viewing a saved revision (read-only)
1adabdc6513b4387a8c8da68912dbb93
Mouse Follower
A circle follows the mouse cursor across an SVG canvas. The React component tracks pointer movement via the `onMouseMove` event handler, updating the circle’s `cx` and `cy` attributes in state. Rendering uses React’s `useState` and `useCallback` hooks, with the coordinate system based on the browser’s `clientX` and `clientY` values.
AI-generated descriptionA program that follows your mouse with circle.