🌍 Public
Viewing a saved revision (read-only)
57c18e2b12f24b4bb272a842f4c79120
02-react
This example shows a smiley face rendered as a static SVG composed of three circles: a yellow head with a black outline and two black eyes. It demonstrates fundamental React DOM manipulation by embedding SVG elements directly in JSX, using React 18 and ReactDOM to mount the component. The code defines variables for dimensions and offsets, then renders the circles with fixed positions and radii.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.