Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React Starter

Public visualization

Fork of React Starter

0 stars0🌍 Public
FFerdinand Steenkamp
Last edited Aug 23, 2021
Created on Aug 20, 2021
Forked from React Starter

This example shows a simple yellow smiley face composed of SVG shapes, rendered via React and D3. The face uses a circle for the head, two circles for eyes, and an arc path generated with `d3.arc` for the mouth, all positioned relative to the SVG center. React’s `App`, `Face`, `Eye`, and `Mouth` components render static markup, while the mouth’s path comes from `arc().innerRadius()`, `.outerRadius()`, and fixed start and end angles. The code imports `arc` from d3 and renders the scene with `ReactDOM.render`.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed