🌍 Public
Viewing a saved revision (read-only)
030eaf18302e4d0ab8db4cd58bcc0bc1
Mouse follower
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.