Mouse follower
✓ Published0🌍 Public
A circle tracks the mouse in real time across the full browser window. Built with React and SVG, the component uses React's `useState` hook to store the pointer's coordinates, updating them on each `mousemove` event via the SVG `onMouseMove` handler. The circle's `cx` and `cy` attributes are bound to these state values, smoothly rendering its position on every move.
AI-generated descriptionProgram that follows your mouse with a circle.
MIT Licensed