🌍 Public
Viewing a saved revision (read-only)
89f45e1da09a4c079178023b3735028f
Fork of Mouse Follower
A React component renders an SVG circle that tracks the mouse cursor across a 960-by-500 canvas. The app uses React’s `useState` and `useCallback` hooks to capture `clientX` and `clientY` coordinates from the SVG’s `onMouseMove` event, updating the circle’s `cx` and `cy` attributes in real time. The visualization demonstrates declarative state-driven rendering with React and ReactDOM, using no external data source beyond user input.
AI-generated descriptionA program that follows your mouse with a circle.