Fork of Mouse Follower
✓ Published0🌍 Public
A circle tracks the mouse across a 960-by-500 SVG canvas, centering itself on the pointer’s coordinates as it moves. The React app uses the `useState` hook to store the mouse position and the `useCallback` hook to update it on every `mousemove` event. The circle is rendered as an SVG `<circle>` element with its `cx` and `cy` attributes bound to the state, while the SVG’s `onMouseMove` handler triggers the position update. No data source is involved; the visualization simply demonstrates interactive rendering with React and SVG.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed