Skip to main content
100%

Fork of Fork of Hello HTML

✓ Published0🌍 Public
KKate Baya
Last edited Apr 10, 2021
Created on Apr 10, 2021
Forked from Fork of Hello HTML

This example shows a simple cartoon face composed of SVG shapes, built with React and rendered through a reusable component structure. A yellow circle forms the background, with two black eye circles positioned by offset values and a mouth drawn as an arc using the `d3.arc` API from d3.v5. The `FaceContainer` component wraps all elements in an SVG group, translating them to the canvas center. The code defines separate components for each facial feature, demonstrating modular composition. The rendering approach uses React DOM to inject the final SVG into the page, combining declarative React syntax with D3’s geometric arc calculations.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes