🌍 Public
Viewing a saved revision (read-only)
fb6aa8e5d9124141a58db72f08965242
Fork of HTML Starter
This example draws a smiley face using React and SVG. It renders a large yellow circle for the face and two smaller black circles for the eyes on a 960x500 canvas. The code defines React constants for the face’s geometry, such as center position, eye offset, and eye radius, and constructs the SVG elements with JSX. ReactDOM renders the resulting SVG into the page’s root element.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.