π Public
Hz what it is
This example renders a single black circle centered on the page using React. The `Circle` component accepts `cx`, `cy`, `r`, and `fill` props, logging the `cx` value to the console on each render. The circle is drawn with JSX inside the component and mounted to the DOM via `ReactDOM.render`. Styling hides page margins and overflow, while React and ReactDOM are loaded from the unpkg CDN.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed








Comments
Sign in to join the discussion.