Generation Multiple Smiley Face
A grid of 18 smiley faces fills the viewport, each randomly generated with variations in eye position, eye radius, and mouth size. The example shows how React components compose reusable SVG shapes, with separate `BackgroundCircle`, `Eyes`, and `Mouth` parts assembled by the `Face` component. Using React’s `map` and D3’s `range` utility, the code iterates 18 times, passing randomized values for facial features. D3’s `arc` generator creates the curved mouth path, while SVG positioning and transforms place each face within its own 160×160 viewport.