🌍 Public
Viewing a saved revision (read-only)
d6f4b5bab42c42d9abab47a81778f19d
Smiley Face part 1
This example uses React 16.7 to render a smiley face as a static SVG graphic, titled “Smiley Face part 1.” The code draws three circles: a large yellow face with a black stroke, and two smaller black eyes positioned symmetrically on the upper half. The SVG’s fixed width and height are set at 960 and 500 pixels, with the face centered via hard-coded coordinates. JavaScript logs the React object to the console, while the HTML includes inline CSS to remove page margins and hide overflow.
AI-generated descriptionHalfway towards smiley face. HTML page demonstrating use of CSS and JavaScript.
See also React Starter.