Skip to main content
100%

Dataviz 2020_Ep8 - 4. Face Part 4 - React Components Basics

✓ Published2🌍 Public
MMinwoo Pak
Last edited May 31, 2021
Created on Apr 16, 2021

This example shows a simple smiley face drawn with SVG shapes, composed of a yellow circle background, two eyes, and a mouth arc, all orchestrated by a React App component that delegates to smaller components. The code uses React and ReactDOM for component rendering, and the D3.js `arc()` API to generate the mouth path. The rendering is static SVG, with the face centered within a 960 by 500 viewport and positioned via a translate transformation.

AI-generated description

Dataviz 2020_Ep8 - 4. Face Part 4 - React Components Basics

Refactoring so that App Component orchestrate other React Components instead of directly creating virtual DOMs

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

See also React Starter.

MIT Licensed

Similar vizzes