Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower Jeremy Osir

Public visualization

Viewing a saved revision (read-only)

778b6de7522c48848c06e729bbe81e0e

Mouse Follower Jeremy Osir

0 stars0🌍 Public
Oosirjeremy
Last edited Jan 14, 2023
Created on Jan 14, 2023

A yellow circle follows the mouse cursor as it moves across a full-screen SVG canvas. The circle’s position updates reactively in response to mouse movement, using React’s `useState` and `useCallback` hooks to manage state and handle the `onMouseMove` event. The React application renders directly into the DOM via `ReactDOM.render`, with the SVG dimensions set to the browser window’s `innerWidth` and `innerHeight`.

AI-generated description

A simple program that follows your mouse with a circle.