🌍 Public
circle following cursor
A yellow circle with a black outline follows the cursor across a blank SVG canvas. The circle’s position is updated on mouse movement using React state and the `onMouseMove` event handler. The visualization is built with React 17 and D3 v7, rendering SVG elements directly. The code uses `useState` and `useCallback` to track and set cursor coordinates, demonstrating interactive data-driven updates without any external dataset.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed
Comments
Sign in to join the discussion.