Fork of Mouse Follower
✓ Published0🌍 Public
A circle follows the mouse cursor across an SVG canvas, changing its fill color to a random RGB value on every mouse movement. The React application tracks mouse coordinates via the `onMouseMove` event handler, updating state with `useState` and `useCallback` from React 16.9.0. The SVG element is rendered through ReactDOM, with the circle's position and color properties bound directly to the current mouse position and a randomly generated color string. This creates an interactive visualization where the circle's appearance changes continuously as the user moves the pointer.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed