Mouse Follower
✓ Published0🌍 Public
A circle follows the mouse cursor as it moves across an SVG canvas, changing its fill color randomly with each click. Built with React hooks `useState` and `useCallback`, the component tracks pointer coordinates via the `onMouseMove` event and updates the circle's `cx` and `cy` attributes. Mouse clicks trigger a `setColor` update that generates a random HSL hue value, demonstrating reactive SVG rendering within a React framework.
AI-generated descriptionReact Starter code.
MIT Licensed