Skip to main content
100%

08-interactions with react

✓ Published1🌍 Public
Mmygynt679
Last edited Apr 8, 2023
Created on Apr 8, 2023
Forked from 02-react

A React 18 application renders an SVG smiley face whose position follows the mouse. It uses the `useState` and `useCallback` hooks to track cursor coordinates from the SVG’s `onMouseMove` event, updating the circle’s `cx` and `cy` attributes. The markup is generated via JSX and mounted with `ReactDOM.render`.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes