Skip to main content
100%

Fork of Fork of HTML Starter

✓ Published0🌍 Public
AAnjan Shrestha
Last edited Feb 17, 2022
Created on Feb 17, 2022

This example renders a simple smiley face using React and SVG. The face is composed of SVG circles and a line element positioned within a 960x500 viewport. React code defined in `index.js` uses JSX with inline expressions in curly braces to set coordinates and radii, while plain SVG attributes handle stroke and fill styling. The visualization demonstrates fundamental React rendering with SVG primitives, including a yellow circle for the face, black eyes, and a white smile. The page loads React, ReactDOM, and D3 via CDN scripts, embedding the visualization in a `#root` div.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes