Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
JJacob Pingel Lauridsen
Last edited Jan 12, 2023
Created on Jan 12, 2023

A yellow circle follows the mouse cursor across a 960 by 500 SVG canvas. Built with React and ReactDOM, the app tracks pointer coordinates via an `onMouseMove` handler on the `<svg>` element, updating the circle's `cx` and `cy` attributes through component state. The example demonstrates reactive SVG rendering driven by user interaction, with no external data source.

AI-generated description

Interaction with React - A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes