Smiley Faces
A grid of randomly generated smiley faces, each with a yellow circular head, black outlined stroke, two eyes, and an arc-shaped mouth, demonstrates the reuse of a modular face component. Using React to compose SVG elements, the code leverages D3's `arc` generator to define the mouth path, while `d3.range` creates a 6-by-3 array of faces. Each face varies its stroke width, eye offset and radius, and mouth dimensions through randomized parameters passed as props, showing how declarative components can produce varied visual output.