🌍 Public
Viewing a saved revision (read-only)
4778c51a60924f8dbd3a8a1a92ec709b
mouse follower
A circle follows the mouse cursor across an SVG canvas, updating its position in real time. The example uses React's `useState` and `useCallback` hooks to track mouse coordinates via an `onMouseMove` event handler, then renders a single circle element with those coordinates as its `cx` and `cy` attributes. The SVG has a fixed width of 960 and height of 500 pixels, with the circle initially centered at the midpoint.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.