🌍 Public
Viewing a saved revision (read-only)
c7e91a3edb1d4a53a1ffe08d3d14602b
Fork of Smily Face
This example uses React and ReactDOM to render a smiley face as a static SVG graphic. It displays a yellow circle with a black stroke, two black eyes, and no mouth, all positioned using computed dimensions based on the viewport’s width and height. The SVG circles are defined with JSX inside a React component, with hardcoded numeric values for radius and offsets. The page loads React from a CDN and mounts the component into a root div, while CSS hides any page overflow.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.