Skip to main content
100%

React components

✓ Published0🌍 Public
Jjrydow
Last edited Sep 6, 2021
Created on Sep 4, 2021
Forked from React starter

A grid of small yellow smiley faces, each with subtle random variations in eye size, eye placement, and mouth thickness, is rendered as reusable React components. The example demonstrates how D3’s `arc` generator creates the mouth path inside a `Mouth` component, while separate `BackgroundCircle`, `Eyes`, and `FaceContainer` components assemble the SVG face. The `index.js` file maps over a `range(6*3)` array to instantiate eighteen `Face` components, each using randomized parameters for its features.

AI-generated description

Half way with face

MIT Licensed

Similar vizzes