Skip to main content
100%

Fork of Smiley Face Part V

✓ Published0🌍 Public
KKaiXuan Chin
Last edited Jul 29, 2021
Created on Jul 29, 2021
Forked from Smiley Face Part V

A yellow smiley face drawn with SVG circles and an arc renders in a React app, centered on a 960 by 500 canvas. The face’s components—background, eyes, and mouth—are split into separate ES6 module files, with the mouth using the D3 `arc()` generator. A `FaceContainer` component supplies the SVG wrapper and translation transform, while React Fragments group the two eye circles. All visual properties like radii and offsets are passed as props from `index.js`, and the example demonstrates modular component composition with D3 and React.

AI-generated description

Splitting React components into multiple files using ES6 modules. Bonus: React Fragments!

MIT Licensed

Similar vizzes