Mouse Follower
✓ Published0🌍 Public
A single gray circle tracks the mouse cursor across an SVG canvas in real time. Built with React, the component uses the `useState` hook to store cursor coordinates and a `useCallback` event handler for `onMouseMove`, updating the circle's `cx` and `cy` attributes. The visualization demonstrates simple state-driven rendering in React with D3.js loaded for potential further data manipulation. The circle starts centered on a 960×500 viewport and moves smoothly in response to pointer events.
AI-generated descriptionA program that follows your mouse with a circle
MIT Licensed