Fork of Mouse Follower
✓ Published0🌍 Public
This React visualization displays a single circle that follows the mouse cursor across an SVG canvas. The application uses React hooks (`useState` and `useCallback`) to track the pointer position and re-render the circle’s coordinates on every mouse movement. The `onMouseMove` event handler captures `clientX` and `clientY`, updating the circle’s `cx` and `cy` attributes. Rendering is handled by ReactDOM, with the SVG elements defined directly in JSX and styled via an external stylesheet.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed