Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML

Public visualization

Fork of HTML

0 stars0🌍 Public
Mmackoshkamacka
Last edited Aug 16, 2023
Created on Aug 8, 2023
Forked from HTML Starter

A grid of 18 smiley face SVGs is rendered using a combination of React and D3. Each face is randomly generated with varying stroke widths, eye radii, and mouth dimensions, resulting in a diverse array of expressions. The faces are constructed from modular components (`BackgroundCircle`, `Eyes`, `Mouth`) that assemble within an SVG container, with the mouth shape drawn using D3’s `arc()` path generator. React’s `range()` and `map()` functions iterate to produce the grid, while ReactDOM renders the final composition into the page.

AI-generated description

Using React, D3, ES6, JS, HTML and CSS to create an array of randomized faces.

HTML CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed