Fork of Mouse Follower
✓ Published0🌍 Public
A circle follows the mouse cursor across a 960 by 500 SVG canvas, updating its position in real time as the pointer moves. The React app uses the `useState` hook to store the current mouse coordinates and the `useCallback` hook to handle the `onMouseMove` event on the SVG element. The rendered circle’s center is bound to the state, and ReactDOM re-renders the element on every mouse movement. The visualization relies on React 16.9.0 and SVG for its rendering.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed