6.00 Lets Make a Face Part 6 (Compartmentalizing Complexity)
✓ Published0🌍 Public
EEric Weiss
Last edited Apr 6, 2021
Created on Apr 6, 2021
Forked from 5.00 Lets Make a Face Part 5 (Multiple Files)
A smiling face is drawn as a yellow circle with eyes and an arc-shaped mouth, rendered as SVG. The face is composed of React components that compartmentalize the design into separate `Face`, `FaceCircle`, `Eyes`, and `Mouth` parts, with `Smily` assembling them. The code uses React 17 and D3 6 APIs, including D3’s `arc()` to generate the mouth path. The face is centered in a 960 by 500 viewport, with dimensions and offsets passed as props.
AI-generated descriptionUsing React and D3
MIT Licensed