Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part V

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Smiley Face Part V

0
YYedrup
Last edited Jan 26, 2021
Created on Jan 26, 2021
Forked from Smiley Face Part V

A yellow smiley face rendered in SVG is composed from modular React components for the background circle, eyes, and mouth. The face uses a black stroke for the outline, with the mouth drawn using d3's `arc` generator. React fragments group the eye circles without adding extra DOM nodes. Components receive positioning via props, and the SVG is centered using a transform. The code demonstrates splitting React components into separate ES6 module files.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed