Skip to main content
100%

Smiley Face Part I

✓ Published0🌍 Public
RRidaHwn
Last edited Jul 20, 2022
Created on Jul 19, 2022
Forked from Hello HTML

This example shows a circular face rendered as a yellow SVG circle with a black stroke, centered on a 960×500 canvas. The code uses React 18 to define a functional component that outputs an SVG `<circle>` element, with dimensions calculated from the viewport’s center and half the stroke width. ReactDOM renders this component into the `#root` div, resulting in a simple smiley-face base without features. The rendering uses React’s JSX syntax and SVG primitives, with no additional data or interaction.

AI-generated description

Halfway towards a smiley face

MIT Licensed

Similar vizzes