Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Uusmcmikestu
Last edited Mar 17, 2021
Created on Mar 17, 2021
Forked from Mouse Follower

A React component renders an SVG circle that tracks the mouse cursor across a 960-by-500 canvas. The app uses React’s `useState` and `useCallback` hooks to capture `clientX` and `clientY` coordinates from the SVG’s `onMouseMove` event, updating the circle’s `cx` and `cy` attributes in real time. The visualization demonstrates declarative state-driven rendering with React and ReactDOM, using no external data source beyond user input.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes