🌍 Public
Mouse Follower
A single black circle follows the mouse cursor across an empty SVG canvas. The circle's position is updated in real time as the cursor moves, using React's `useState` and `useCallback` hooks to track `clientX` and `clientY` coordinates. The example renders with `ReactDOM.render` and imports `arc` from D3 v5, though the visible output is purely a responsive circle.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed
Comments
Sign in to join the discussion.