Skip to main content
100%

Fork of Smily Face

✓ Published0🌍 Public
PPipo
Last edited Feb 24, 2021
Created on Feb 24, 2021
Forked from 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 description

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

See also React Starter.

MIT Licensed

Similar vizzes