Skip to main content
100%

Hello HTML

✓ Published1🌍 Public
Aask4jm
Last edited Jul 6, 2020
Created on Jul 6, 2020
Forked from Hello HTML

This example renders a simple cartoon face using React components and SVG. It shows a yellow circle face with two eyes and a mouth, centered on a 960x500 canvas. The code defines reusable components like `BackgroundCircle`, `Eyes`, and `Mouth`, which use d3’s `arc` to generate the mouth path. The face is composed declaratively via React props in `Face.js`, with `FaceContainer` providing the SVG root and coordinate transforms. The main app sets dimensions and offsets directly in JSX, targeting plain HTML via ReactDOM.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes