🌍 Public
Viewing a saved revision (read-only)
b117313e8bf641a9992330e112ddd257
Mouse Follower
A single circle in an SVG viewport tracks the user's mouse in real time, following its position across the full screen. Built with React, the app uses the `useState` hook to store the current mouse coordinates and the `useCallback` hook to update them via the SVG `onMouseMove` event handler. The circle’s `cx` and `cy` attributes are bound directly to this state, causing a re-render on every pointer movement. The rendering approach is purely declarative, with the circle’s radius fixed at 30 pixels.
AI-generated descriptionMouse follower