Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React 1. Try

Public visualization

React 1. Try

0 stars0🌍 Public
Mmachetenwueter
Last edited Aug 7, 2021
Created on May 16, 2021
Forked from Mouse Follower

A React application renders an interactive SVG circle that follows the mouse cursor across a 960x500 canvas. The circle changes color between blue and red on click, and expands by 20 pixels when hovered over. Using React's `useState` and `useCallback` hooks, the component updates the circle's position, fill, and radius based on mouse events. The visualization demonstrates React's declarative rendering with SVG, loading React 16.9.0 from a CDN and drawing the circle via JSX within an `<svg>` element.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed