Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dot follow your mouse

Public visualization

dot follow your mouse

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed