🌍 Public
Viewing a saved revision (read-only)
b81acc3327494e23a82482ba669f6659
Data Visualization
A circle follows the mouse cursor across an SVG canvas, with its position updating in real time as the user moves the pointer. The React component uses the `useState` hook to track mouse coordinates, which are passed to the circle's `cx` and `cy` attributes. The `onMouseMove` event handler updates the state on each movement, while D3 v7 handles the SVG rendering within the React framework.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.