Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Teste com React

Public visualization

Viewing a saved revision (read-only)

21e7bf72044b4075843adc737c62d656

Teste com React

0 stars1🌍 Public
Xxilingus
Last edited Oct 11, 2021
Created on Oct 11, 2021

A React component tracks the mouse position and renders a single circle that follows it across an SVG canvas. The app uses React hooks (`useState` and `useCallback`) to store and update the mouse coordinates, which are passed directly to the circle’s `cx` and `cy` attributes. The circle is redrawn on every `mousemove` event, with its radius fixed at 30 pixels. The example demonstrates a basic interactive visualization built with React 16.9 and SVG rendering, without any additional data source.

AI-generated description

Programa que segue o mouse