Skip to main content
100%

First program

✓ Published0🌍 Public
GGOKULKRISHNA22
Last edited Oct 21, 2021
Created on Oct 19, 2021
Forked from Hello HTML

This example shows a simple cartoon face rendered with React and D3.js in an SVG. It uses three reusable components—BackgroundCircle, Eyes, and Mouth—to compose a yellow circle with black outlined eyes and an arc-based mouth. The components accept props to control dimensions like radius, eye offset, and stroke width. D3’s `arc()` API generates the mouth path, while React handles component structure and SVG rendering. The face is centered via an SVG `<g>` transform, and all styling is applied through inline SVG attributes.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes