🌍 Public
Viewing a saved revision (read-only)
f7e952c7eee346c2a0402ede7e06278f
Mouse Follower
A circle follows the mouse cursor across a yellow-bordered SVG canvas. The React application tracks the pointer's client coordinates and repositions a fixed-radius circle at that location. Using React's `useState` and `useCallback`, it updates the circle's `cx` and `cy` attributes on every mouse move. The `onMouseMove` handler on the SVG element captures the position, and ReactDOM renders the updated circle at the new coordinates.
AI-generated descriptionA program that follows your mouce with a circle