🌍 Public
Viewing a saved revision (read-only)
d096f9d65e1a481f82d04180a0150a61
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.