Moving Dot
✓ Published1🌍 Public
A dot follows the user's cursor across a full-screen SVG canvas, creating a direct and immediate visual link between mouse movement and the rendered circle. The application is built with React, using the `useState` hook to track cursor coordinates and a `useCallback` handler to update the circle's `cx` and `cy` attributes through React's state management. No D3 layout or simulation is involved; the visualization relies solely on React event handling and SVG rendering, with D3 loaded only for its utility functions.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed