🌍 Public
Viewing a saved revision (read-only)
48a965833b3f4d109ab0df3a76fea578
Fork of Mouse Follower
A React application renders an SVG circle that follows the mouse cursor across a 960-by-500 canvas. The component tracks pointer coordinates via the SVG `onMouseMove` event and updates the circle’s center position with React state and `useCallback`. The example demonstrates declarative SVG rendering with React’s `useState` hook, using a fixed initial position at the canvas center. No external data sources are involved; the visualization purely reacts to user input within the browser window.
AI-generated descriptionA program that follows your mouse with a circle.