🌍 Public
Viewing a saved revision (read-only)
305e335edf654deca6b23631302ab5dc
Mouse Follower
A single yellow circle follows the mouse cursor across a blank SVG canvas. The React component tracks pointer coordinates through an `onMouseMove` event handler, using the `useState` hook to update the circle’s `cx` and `cy` attributes with each movement. The example demonstrates state-driven, declarative SVG rendering in React, with the circle initialized at the center of the 960×500 viewport and a fixed radius of 30 pixels.
AI-generated descriptionSmiley face implementation with React.