🌍 Public
Viewing a saved revision (read-only)
aa0431db8f2045d08f413dd42ab26ae5
Fork of React Starter
The visualization is an interactive React application that renders a single SVG circle, which follows the cursor's movement across the viewport. The circle's position updates in real time based on the mouse coordinates captured by the `onMouseMove` event handler. Using React's `useState` hook, the component tracks the mouse position and re-renders the SVG element with the new `cx` and `cy` attributes. The code employs the React and ReactDOM libraries, rendering the visualization directly into the HTML root element. The SVG canvas is 960 by 500 pixels, with the circle's default starting position at the center.
AI-generated descriptionReact Starter code.