Smiley Face
This example shows a stylized smiley face constructed from reusable React components. The face consists of a yellow background circle, two black eyes, and a mouth drawn as an arc path, all centered within an SVG using a group translation. The code leverages React fragments and props to compose the `Face`, `BackgroundCircle`, `Eyes`, and `Mouth` components, while D3’s `arc` generator defines the mouth’s shape with specified radii and angles. The rendering is fully declarative, with dimensions and positions passed as props from the main `App` component.