Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React Interaction

Public visualization

Viewing a saved revision (read-only)

7eb59ce5af304e839954f2d3033e822a

React Interaction

0 stars0🌍 Public
KKonstantinosD85
Last edited Nov 5, 2021
Created on Nov 5, 2021

A black circle follows the mouse cursor across a full-window SVG canvas, and toggles its tracking on and off with each click. Built with React and ReactDOM, the example uses the `useState` hook to manage the position and active state, while `onMouseMove` and `onClick` handlers update the circle's coordinates. The SVG is rendered directly in the browser window, with no external data source.

AI-generated description

React Interactions