Shapes with SVG and CSS
This example demonstrates how to create basic SVG shapes—circles, rectangles, lines, and paths—using React and SVG elements within a simple HTML page. It shows how CSS classes control stroke styling, while SVG attributes like `fill` and `stroke-width` set individual shape colors directly. The visualization also uses `<g>` groups to apply shared styling and transformations, such as translating shapes and applying a uniform fill and stroke. The code relies on standard SVG APIs and CSS, with no external JavaScript libraries beyond React for rendering.