Mouse Follower
✓ Published0🌍 Public
A yellow circle follows the mouse cursor across a 960-by-500 SVG canvas. Built with React and ReactDOM, the app tracks pointer coordinates via an `onMouseMove` handler on the SVG element, storing them in state with `useState` and updating them through `useCallback`. Each move re-renders the circle's `cx` and `cy` attributes, creating a direct, responsive visual link between pointer position and the rendered shape.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed