Fork of Mouse Follower
✓ Published0🌍 Public
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.
MIT Licensed