Skip to main content
100%

Fork of Let's Make a Face Part I

✓ Published0🌍 Public
AAnthony Le
Last edited Jul 23, 2024
Created on Jul 23, 2024

This example shows a simple, static SVG face built with React, consisting of a yellow circle for the head and two smaller black circles for the eyes. The code defines the canvas dimensions, center points, eye offset, eye radius, and stroke width as variables, then uses React’s `ReactDOM.render` to compose the SVG elements with computed coordinates. The rendering relies on React 18.3.1 and ReactDOM, drawing the shapes directly as SVG circles without any data source or interaction.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes