Mouse Follower
✓ Published210🌍 Public
A circle follows the mouse cursor within an SVG canvas. The visualization uses React's `useState` and `useCallback` hooks to track the cursor's `clientX` and `clientY` coordinates from the SVG's `onMouseMove` event, updating the circle's `cx` and `cy` attributes in real time. The app renders through ReactDOM, with the circle's radius set to 30 pixels on a 960 by 500 canvas.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed