Zoom Skeleton
✓ Published3🌍 Public
This example demonstrates a zoomable SVG stage built with React and D3 v6. A zoom behavior attached to the SVG element updates a transform state, which is applied to a child `<g>` container, allowing the text "Hello World!" to pan and scale in response to mouse gestures. The implementation uses React hooks (`useState`, `useEffect`) and D3's `zoom` and `select` APIs, with the stage and zoom container defined as reusable components. The SVG is rendered declaratively via React, with D3 handling the interactive zoom events.
AI-generated descriptionA program that follow a mouse with a circle HTML page.
MIT Licensed