🌍 Public
Viewing a saved revision (read-only)
c02b278192224aa5a9af735787acd85f
Mouse Follower
A circle follows the mouse cursor across an SVG canvas, with a black outline appearing when the cursor enters the drawing area and disappearing when it leaves. The React application uses the `useState` hook to track mouse coordinates and stroke color, updating the circle’s position via the `onMouseMove` event handler on the SVG element. The code renders the circle purely with React and SVG, relying on clientX and clientY from the mouse event for positioning.
AI-generated description