Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
JJohn Huang
Last edited May 6, 2021
Created on May 5, 2021
Forked from HTML Starter

This example is a work-in-progress toward a smiley face, rendering a single yellow circle with a black outline and two smaller black circles as eyes on an SVG canvas. The drawing is currently hardcoded with fixed coordinates and radii, and the main React component simply displays a “Hello JSX” heading, leaving the visual elements commented out in the HTML. The code uses React and ReactDOM’s `render` method, and relies on the SVG primitives `circle`, `cx`, `cy`, `r`, `fill`, `stroke`, and `stroke-width` to define the shapes.

AI-generated description

Half way towards a smiley face

MIT Licensed

Similar vizzes