Skip to main content
100%

Mouse follower

✓ Published0🌍 Public
Sstefanpullen
Last edited Dec 16, 2021
Created on Dec 15, 2021

A smiley face rendered with React SVG follows the mouse cursor across the screen. The face consists of three circles: one large yellow circle for the head and two smaller black circles for the eyes. It uses React's `useState` and `useCallback` hooks to track and update the cursor position, re-rendering the SVG elements on every mouse move. The code is structured with separate `index.html` and `index.js` files, though the data-loading logic from a CSV is not active in this version.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes