Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
KKimberly Nguyen
Last edited Nov 16, 2021
Created on Nov 15, 2021

A yellow circle follows the mouse cursor across a blank SVG canvas, updating its position in real time as the user moves the pointer. Built with React hooks, the app tracks mouse coordinates through the `onMouseMove` handler and stores them in state via `useState`. The circle re-renders at the new location on every movement event, demonstrating a simple interactive visualization that combines React's declarative rendering with D3's SVG utilities.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed