🌍 Public
Viewing a saved revision (read-only)
8d66a55e2eb741bd94bd471215aee4d8
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.