Skip to main content
100%

Fork of Smiley Face Part II

✓ Published0🌍 Public
Aalexcholmsky
Last edited Apr 28, 2022
Created on Apr 28, 2022

A React component renders a full-screen SVG smiley face, with the face radius and eye positions calculated from the browser's window dimensions. The code uses React 16.9 and ReactDOM to mount the component, drawing a yellow circle with a black stroke for the head and two smaller black circles for the eyes, all positioned via SVG coordinates and a transform based on the viewport center. The mouth is not drawn, despite the title referencing a smiley face implementation.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes