Skip to main content
100%

Fork of Smiley Face Part II

✓ Published0🌍 Public
EErick Brandao
Last edited May 4, 2022
Created on May 4, 2022

This example renders a full-screen yellow smiley face using React and SVG. The face is built from three circles—two black eyes and one yellow head—positioned relative to the window’s center, with dimensions calculated from `window.innerWidth` and `window.innerHeight`. The code uses `ReactDOM.render` to mount the component, and the SVG’s `transform` attribute translates the group to the center. The smile is omitted, leaving only the head and eyes, while the stroke width and radii are defined as constant values.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes