🌍 Public
Viewing a saved revision (read-only)
d85fc7f5156b4c8a961be03ac08a7749
Hello HTML
This example renders a smiley face using React and SVG. It draws a yellow circle with a black stroke as the face, plus two smaller circles for eyes, all positioned within a 960x500 viewport. The code uses React 18’s `ReactDom.render` to mount an SVG element into a div with the ID `root`. It demonstrates basic React component structure and SVG shape creation, with dimensions and positions computed as JavaScript variables.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.