Skip to main content
100%

Fork of Fork of Hello HTML

✓ Published1🌍 Public
AAmir
Last edited Feb 26, 2021
Created on Feb 25, 2021
Forked from Smile Face

This example shows a yellow circle that follows the mouse cursor within an SVG canvas. The circle’s position updates reactively as the user moves the mouse over the 1000×500 viewport. Built with React 16.9 and D3 v5, it uses React’s `useState` and `useCallback` hooks to track mouse coordinates and re-render the circle’s `cx` and `cy` attributes. The SVG element’s `onMouseMove` event triggers state updates, demonstrating a simple interaction pattern without any external data source.

AI-generated description

fallow mouse

MIT Licensed

Similar vizzes