Skip to main content
100%

interact with user via REACT

✓ Published0🌍 Public
GGiulio Bontadini
Last edited Jul 4, 2021
Created on Jul 4, 2021

A React application renders a full-window SVG containing a single circle that follows the mouse cursor in real time. The code uses React’s `useState` hook to store the cursor position, initialized at the window’s center, and updates it through the `onMouseMove` event listener on the SVG element. The browser’s `clientX` and `clientY` event properties drive the circle’s `cx` and `cy` attributes. The project relies on React and ReactDOM from unpkg, rendering via SVG with no external data source.

AI-generated description

A program tht follows your mouse with a circle

MIT Licensed

Similar vizzes