Skip to main content
100%

dot follow your mouse

✓ Published0🌍 Public
SSkye Chen
Last edited Jul 7, 2021
Created on Jul 5, 2021

A yellow dot follows the mouse cursor across a full-window SVG canvas, updating its position in real time as the user moves the pointer. The React component tracks mouse coordinates via the `onMouseMove` event handler and the `useState` and `useCallback` hooks, then renders a single `<circle>` element with those coordinates. The visualization uses React 16.9 and ReactDOM with SVG rendering inside a full-screen viewport.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes