Skip to main content
100%

Fork of Fork of Hi vizhub Smiley Face Part V

✓ Published1🌍 Public
RRuanzhenglin
Last edited Apr 9, 2021
Created on Apr 8, 2021

This example builds a smiley face from modular React components, rendered as SVG shapes. A yellow circle with a blue stroke forms the head, while two black circles serve as eyes and an arc generated with d3.arc creates the mouth. The code imports React and ReactDOM to mount the app and relies on D3 v6 for the mouth’s arc path geometry. All proportions, such as radius and offsets, are defined as constants in index.js, and the components receive them as props.

AI-generated description

Half way towards a smiley face

MIT Licensed

Similar vizzes