Smiley Face
This example shows a grid of smiley faces, each rendered as a yellow circle with black outlines, eyes, and a curved mouth. The faces are generated using React components, with each face composed of separate `BackgroundCircle`, `Eyes`, and `Mouth` parts. D3’s `arc` function creates the mouth shape, while `range` from D3 drives the generation of 18 distinct faces, each with randomized eye and mouth dimensions. The SVG output is centered within a fixed-width container, and the code relies on React’s declarative component structure to assemble each face.