Fork of Smily Face
✓ Published0🌍 Public
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.
MIT Licensed