Smiley Face Assignment
This example renders a cartoon smiley face using React and D3 version 7, with SVG elements for the head, ears, eyes, mouth, nose, and a vertical line. The face is drawn with circles, an ellipse, a line, and a path generated by the `arc` function from D3, which creates the curved mouth by specifying inner and outer radii along with start and end angles. All shapes are centered within an SVG canvas of 960 by 500 pixels, with positions calculated relative to the center coordinates and fixed offsets for the eyes and ears. The code uses React’s `StrictMode` and `ReactDOM.render` to mount the component, and styling is applied through SVG attributes like `fill` and `stroke-width`.