Fork of Mouse Follower
✓ Published0🌍 Public
A React application renders a 600-by-500 SVG scene containing a single circle that tracks the user’s cursor. The component uses the `useState` hook to store the mouse position and `useCallback` to update it on every `onMouseMove` event, then sets the circle’s `cx` and `cy` attributes to the cursor’s client coordinates. Built with React 16.9 and ReactDOM, the example demonstrates declarative state-driven rendering without external data or animation libraries.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed