Skip to main content
100%

Fork of Smiley Face Part III

✓ Published0🌍 Public
MMateus Marodim
Last edited Oct 8, 2021
Created on Oct 8, 2021

This example shows a modular, component-based smiley face built with React and rendered as SVG. The face’s features are separated into reusable components—FaceBackground, Eyes, and Mouth—each accepting props for size, position, and styling. The mouth uses D3’s `arc` generator to create a curved path, while the face background is a simple circle with a yellow fill and black stroke. The app assembles these components in `index.js`, passing fixed dimensions and coordinates to create a single centered face on a 960×500 canvas.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes