Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
PPaulo Dandrea
Last edited Jan 19, 2022
Created on Jan 18, 2022
Forked from React Starter

A React application renders an SVG circle that follows the mouse cursor across a 960-by-500 viewport. The component tracks pointer coordinates via the `onMouseMove` event handler, updating React state with the client X and Y positions, which are then bound to the circle's `cx` and `cy` attributes. The visualization demonstrates real-time state-driven SVG manipulation using React hooks (`useState`, `useCallback`) and ReactDOM, with no external data source or animation library.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes