Skip to main content
Public

Share visualization

Loading preview…

Fork of Let's Make a Face Part I

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 Let's Make a Face Part I

0
TtrwMK
Last edited Oct 5, 2022
Created on Oct 5, 2022

This example renders a simple smiley face using React and SVG. Two black circles form the eyes, positioned symmetrically on either side of the canvas center, while a larger yellow circle with a black stroke serves as the face. The code defines the layout with constants for width, height, and eye offsets, then uses ReactDOM’s `render` method to draw the shapes into the root element. The SVG output is generated declaratively through React’s JSX syntax.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed