Skip to main content
100%

mouse_folow

✓ Published1🌍 Public
TTOKIHISA
Last edited Jan 8, 2022
Created on Jan 8, 2022

A yellow circle follows the mouse cursor across an SVG canvas, its position updating in real time. The React app tracks pointer coordinates through an `onMouseMove` event handler, storing them in state and re-rendering the circle's `cx` and `cy` attributes. This interactive sketch uses React's `useState` hook and ReactDOM, with D3.js loaded but not actively employed in the visible logic.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes