Skip to main content
100%

Fork of Smiley Face Part II

✓ Published0🌍 Public
Cco
Last edited Nov 17, 2022
Created on Nov 17, 2022

A circle follows the mouse cursor across a full-screen SVG canvas. The example demonstrates a minimal React application that tracks pointer movement and updates the circle's position in real time. It uses React's `useState` and `useCallback` hooks to manage the mouse coordinates, which are captured via the SVG container's `onMouseMove` event. The circle is rendered as an SVG `<circle>` element with a fixed radius, and the app is mounted into the DOM with `ReactDOM.render`. The code imports React and ReactDOM from their production UMD builds.

AI-generated description

follows your mouse with a circle

MIT Licensed

Similar vizzes