🌍 Public
Viewing a saved revision (read-only)
eba1647bee004c01ada802f1180f8dfc
Smiley Face Part II
A yellow circle follows the mouse cursor across a 960 by 500 SVG canvas. The example demonstrates stateful interaction in React, where the circle's center coordinates update based on the cursor's position. The React app uses the `useState` hook to track mouse movement and ReactDOM to render the SVG element, which handles the `onMouseMove` event.
AI-generated descriptionA program that follows your mouse with a circle.