Fork of Mouse Follower
✓ Published0🌍 Public
A circle follows the mouse cursor across a 960 by 500 SVG canvas, updating its position in real time. Built with React, the app tracks `onMouseMove` events to store the cursor’s coordinates in state and re-renders a single `<circle>` element with the new `cx` and `cy` values. The example uses React’s `useState` and `useCallback` hooks alongside ReactDOM, with visual output rendered entirely as SVG.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed