Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
BBJorgen
Last edited Mar 1, 2021
Created on Mar 1, 2021

A circle follows the mouse cursor across a full-screen SVG canvas. The React component uses the `useState` hook to track the mouse's `clientX` and `clientY` coordinates, updating on every `onMouseMove` event. It renders a single `<circle>` element with its `cx` and `cy` attributes set to the current mouse position.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes