🌍 Public
Viewing a saved revision (read-only)
e31e1242234e4583a34aad62f7472442
Mouse follower
A single black circle follows the mouse cursor across a blank SVG canvas, updating its position in real time. The React app tracks pointer coordinates through an `onMouseMove` event handler and stores them in state with `useState`, then re-renders the circle using the `clientX` and `clientY` values. The example demonstrates a basic interactive pattern using React’s `useCallback` and ReactDOM, with SVG circle elements for rendering.
AI-generated description