🌍 Public
Viewing a saved revision (read-only)
7de982664fec49e0a3a24e12313232c3
Mouse Follower
A circle follows the mouse cursor within an SVG canvas. The visualization uses React's `useState` and `useCallback` hooks to track the cursor's `clientX` and `clientY` coordinates from the SVG's `onMouseMove` event, updating the circle's `cx` and `cy` attributes in real time. The app renders through ReactDOM, with the circle's radius set to 30 pixels on a 960 by 500 canvas.
AI-generated descriptionA program that follows your mouse with a circle.