🌍 Public
Viewing a saved revision (read-only)
a1fb7c668c4f489b9ef7c8156b815b51
Fork of Fork of Fork of HTML Starter
A React component renders an SVG circle that follows the mouse cursor across a 960x500 viewport. The application uses React's `useState` hook to track the cursor's `clientX` and `clientY` coordinates, updated by an `onMouseMove` event handler on the SVG element. The circle's `cx` and `cy` attributes bind to the stored position, creating a direct visual response to pointer movement. The visualization demonstrates a simple, interactive SVG rendering approach using React 18 and ReactDOM.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.