Skip to main content
100%

Fork of Smiley Face Part V

✓ Published0🌍 Public
XXudong Zhang
Last edited Mar 29, 2021
Created on Mar 29, 2021
Forked from Smiley Face Part V

This React and D3 example renders a classic smiley face using SVG. The visualization is built from modular React components, each defined in separate files: `BackgroundCircle` draws the yellow face, `Eyes` places two circles, and `Mouth` uses a D3 `arc` path to create a curved smile. The app centers the entire face using an SVG `<g>` transform and all measurements—eye offsets, radii, and stroke widths—are parameterized for easy adjustment.

AI-generated description

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

MIT Licensed

Similar vizzes