Skip to main content
100%

Fork of React Starter1

✓ Published1🌍 Public
Zzenoalive
Last edited Feb 5, 2023
Created on Jan 10, 2023
Forked from React Starter

A circle follows the mouse cursor inside an SVG canvas, with its position updating in real time. The example demonstrates React state management, using the `useState` hook to store mouse coordinates and `useCallback` to handle mouse movement events. The circle’s center is set to the tracked `clientX` and `clientY` values, and it is rendered with a fixed radius of 30 pixels within a 960 by 500 viewport. The SVG element captures the `onMouseMove` event, and no external data is loaded.

AI-generated description

A program that loads data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes