🌍 Public
Viewing a saved revision (read-only)
7eb963f5f2f24277b2ccd4a9ae73440e
Fork of follow the mouse
A smiley face drawn with SVG circles follows the mouse cursor across a full-screen canvas. Built with React, the component tracks pointer movement through an `onMouseMove` handler and updates the circle's `cx` and `cy` coordinates via the `useState` and `useCallback` hooks. The rendering uses React DOM to mount an SVG element sized to the browser window, with the cursor position stored as state. A commented-out static smiley face suggests the interactive version replaces a fixed layout.
AI-generated descriptionSmiley face implementation with React.