Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 Public
YYuji
Last edited Jul 17, 2021
Created on Jul 17, 2021
Forked from HTML Starter

This example shows a yellow smiley face rendered as a static SVG graphic using React and D3. The face is composed of basic shapes: circles for the eyes and nose, and D3 arc paths for the mouth, upper nose, and eyebrows. The code defines constants for dimensions and positions, then builds the face inside a React component. D3’s `d3.arc` generates the curved mouth and brow shapes, while React’s `ReactDOM.render` mounts the SVG to the DOM. The rendering approach is declarative, with all geometry specified in JSX.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes