Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
NNick Jefford-Horn
Last edited May 30, 2021
Created on May 30, 2021

A yellow circle follows the mouse cursor across a 960×500 SVG canvas, updating its position in real time through React state. The app uses `useState` to store the current mouse coordinates and `useCallback` to handle `mousemove` events, with the circle’s `cx` and `cy` attributes bound to that state. Rendered via ReactDOM and React 16.9, the visualization demonstrates reactive SVG updates without any external data source.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes