mouse follower
✓ Published1🌍 Public
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.
MIT Licensed