Skip to main content
100%

Fork of Fork of HTML Starter

✓ Published0🌍 Public
KKelvinYQC
Last edited Jul 4, 2022
Created on Jul 4, 2022

This example creates a simple smiley face using React and SVG. It renders a yellow circle with two smaller black circles for eyes, positioned symmetrically around a central point. The code demonstrates the use of React’s `ReactDOM.render` to inject the SVG into the DOM, and it sets up the React and D3 libraries via UMD builds from unpkg. The SVG dimensions and element positions are defined as constants, showcasing basic declarative graphics with React.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes