Skip to main content
100%

Smiley face part I

✓ Published1🌍 Public
LLiam Farmer
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from HTML Starter

This example shows a yellow smiley face drawn as a static SVG graphic, with two black eye circles positioned symmetrically on a larger yellow face circle. The face is rendered using React components that return SVG elements, with hardcoded dimensions for the viewport, eye offsets, and radii. The code uses React’s `ReactDOM.render` to mount the component tree, and constructs the circles via inline JSX attributes like `cx`, `cy`, and `r` within a single `<svg>` element. No dynamic data or interaction is present—only fixed visual primitives.

AI-generated description

Halfway towards a smiley face, html is too restrictive as you cannot code within it.

MIT Licensed

Similar vizzes