Fork of Mouse Follower
✓ Published0🌍 Public
A circle sits at the center of an SVG canvas in a React application. As the mouse moves over the canvas, the circle remains stationary while the console logs the cursor’s clientX and clientY coordinates. The code uses React hooks like useState and useCallback, though only the onMouseMove event handler is implemented. The rendering uses ReactDOM to mount an SVG element with a single circle, demonstrating basic event handling within a React-based visualization without any animation or movement.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed