🌍 Public
Viewing a saved revision (read-only)
a08cf647ac664a70a4879e8c5e5eac73
Fork of MouseFollower
A React component renders an SVG circle that follows the mouse cursor across the full browser window. The circle's position updates on every mouse move via React's `useState` and `useCallback` hooks, with the `clientX` and `clientY` event coordinates passed directly to the SVG `cx` and `cy` attributes. The visualization demonstrates real-time event handling in a React-SVG setup, using `ReactDOM.render` to mount the root element.
AI-generated descriptionProgram follows mouse with circle