Mouse follower
✓ Published1🌍 Public
A circle follows the mouse cursor across a full-screen SVG canvas, updating its center position in real time as the pointer moves. Built with React and ReactDOM, the application tracks mouse coordinates through an `onMouseMove` event handler and stores them in component state via the `useState` hook. The SVG circle’s `cx` and `cy` attributes are bound to this state, causing React to re-render the shape at each new location. The canvas dimensions adapt to the browser window using `window.innerWidth` and `window.innerHeight`, with a fixed circle radius of 30 pixels.
AI-generated descriptionAprogram that follows your mouse with a circle.
MIT Licensed