🌍 Public
Viewing a saved revision (read-only)
0eb8af2ebb6c477b8fa33ab9bff3d7d0
Mouse Follower
A circle tracks the mouse cursor in real time across an SVG canvas. The React component uses the `onMouseMove` event to update the circle's center coordinates via the `useState` and `useCallback` hooks. The circle is rendered with SVG, and its position is driven by the client X and Y values from the mouse event. The example demonstrates a simple interactive visualization with React and SVG.
AI-generated descriptionA program that follows your mouse with a circle.