Fork of HTML Starter
✓ Published0🌍 Public
This interactive visualization renders a single circle that follows the mouse cursor across a 500x500 SVG canvas. The circle's position updates in real time through React's `useState` hook, which tracks mouse coordinates via an `onMouseMove` event handler. The code imports the `arc` function from d3.v7, though it is not used in the current implementation, and renders the SVG using ReactDOM. The example demonstrates a minimal React and d3 integration, with the circle radius fixed at 10 pixels.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed