Fork of Mouse Follower
✓ Published0🌍 Public
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 descriptionA program that follows your mouse with a circle.
MIT Licensed