Mouse follower
✓ Published1🌍 Public
A React application renders a single circle inside an SVG that follows the mouse cursor across the viewport. The component tracks pointer coordinates using a `useState` hook and updates the circle's `cx` and `cy` attributes on every `mousemove` event via a `useCallback` handler. Rendering relies on React 16.9 for state management and SVG creation, with D3 v5 loaded but not actively used for this behavior. The circle starts centered at 480 by 250 pixels and moves smoothly in response to user input.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed