🌍 Public
Viewing a saved revision (read-only)
1fcb73d8a68b4b5f9712a2a09ebadd40
Mouse Follower
A single circle tracks the mouse as it moves across a full-screen SVG canvas, with its position updating in real time to mirror the cursor’s coordinates. Built with React and ReactDOM, the app uses the `useState` hook to store the mouse position and the `useCallback` hook to handle the `onMouseMove` event on the SVG element. The viewport dimensions come from `window.innerWidth` and `window.innerHeight`, and the circle is rendered as an SVG `<circle>` element with a fixed radius of 30 pixels.
AI-generated descriptionA program that follows your mouse with a circle