Fork of Mouse Follower
✓ Published0🌍 Public
A React application renders a single circle at the center of an SVG canvas, which then follows the user's cursor in real time. The component tracks mouse coordinates through a `handleMouseMove` callback that updates state with each pointer movement, re-rendering the circle's `cx` and `cy` attributes. It uses React 16.9's `useState` and `useCallback` hooks within a functional component, with the SVG's `onMouseMove` event driving the position updates. The visualization demonstrates simple state-driven interaction without external data sources or animation libraries.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed