🌍 Public
Viewing a saved revision (read-only)
ed6f39fd9e0f428294c75e2c37fd3a08
Mouse Follower (orobor0s)
A circle tracks the mouse cursor across a 960 by 500 SVG canvas, demonstrating real-time interaction with React state. The example uses React hooks (`useState`, `useCallback`) to update the circle’s `cx` and `cy` coordinates from the `clientX` and `clientY` values of the `onMouseMove` event. Rendered as an SVG circle with a fixed radius of 30, the visualization directly mirrors pointer movement without animation or data transformations.
AI-generated descriptionA program that follows your mouse with a circle