Skip to main content
100%

Fork of Fork of Let's Make a Face Part I

✓ Published0🌍 Public
PPierre Tabet
Last edited Nov 19, 2021
Created on Nov 19, 2021

This example shows a minimal React application that renders a static yellow SVG face with two black-outlined eyes, stopping short of completing a full smiley face. The code constructs the SVG elements directly in HTML comments, while the visible React component simply displays a heading and logs library versions. It imports React and ReactDOM from unpkg CDN links, using `ReactDom.render` to mount the app into the DOM. The rendering approach relies on standard SVG `circle` elements for the face and eyes, with coordinates calculated relative to the canvas dimensions.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes