🌍 Public
Viewing a saved revision (read-only)
b09319ffcf3b4ad4a4217bb0c6e0369c
Mouse follower
A yellow circle follows the mouse cursor within an SVG canvas, updating its position in real time. The visualization uses React’s `useState` and `useCallback` hooks to track mouse coordinates via the `onMouseMove` event, and renders the circle with SVG elements. The code imports React and ReactDOM, and sets initial mouse position at the canvas center.
AI-generated descriptionA program that follows your mouse with a circle.