🌍 Public
Viewing a saved revision (read-only)
6335b94edfa8458e8156377a9049763d
Fork of HTML Starter
This example renders a smiley face in SVG using React components and D3 shape generators. It shows a yellow circle with black stroke, two eye circles, and a mouth path drawn with `d3.arc()`. The code uses React for component composition, with `BackgroundCircle` as a reusable component, and renders through ReactDOM into the DOM. The SVG is 960 by 500 pixels, with position calculations for eyes and mouth based on center coordinates and offset values.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.