Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Tracking

Public visualization

Mouse Tracking

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

Comments

Sign in to join the discussion.

MIT Licensed