Skip to main content
100%

Mouse Tracking

✓ Published0🌍 Public
Ppeterforberg
Last edited Dec 30, 2021
Created on Dec 29, 2021
Forked from Smiley with React

A single black circle tracks the user's mouse cursor across a blank SVG canvas. The visualization demonstrates how React state updates on every mouse movement event, with the circle's center position re-rendered accordingly. It uses React's `useState` and `useCallback` hooks along with the `onMouseMove` event handler, while D3 v5 is loaded but not directly used in the interaction logic.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes