Mouse Follower
✓ Published2🌍 Public
Ddmr
Last edited Nov 13, 2021
Created on Nov 13, 2021
A black circle sits at the center of an SVG canvas, rendered by a React component that sets its `cx`, `cy`, and `r` attributes. The example uses React 17 and D3 loaded via CDN, with the circle’s position fixed at the midpoint of a 960×500 viewport. The code provides a minimal starter template for integrating React with D3 or other visualization libraries, showing how to structure a single SVG element within a React render call.
AI-generated descriptionMOUSE FOLLOWER
A program that follows the mouse with a circle.
This version will be a good starter for React, D3, etc. It just has a single black circle in the middle of the screen.
MIT Licensed