Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

04-react components & es6

Public visualization

Viewing a saved revision (read-only)

30ec2c66cabd465bab0694cf55be744d

04-react components & es6

0 stars1🌍 Public
Mmygynt679
Last edited Apr 8, 2023
Created on Apr 7, 2023
Forked from 03-react & d3

This example renders a smiley face in SVG using React components and ES6 destructuring. It imports the `arc` function from d3.v7 to generate the mouth path via `mouthArc()`. The `BackgroundCircle` component receives a radius prop, while the main `App` component composes circles, a rectangle, and the arc path inside a translated group. React 18 renders the visualization into the `#root` element using `ReactDOM.render`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.