🌍 Public
Viewing a saved revision (read-only)
3791d413e9a3436a847d3f6d1d6f674d
React Starter
This example demonstrates a minimal React application that renders the text "Hello React!" inside a full-screen HTML page. The code creates a single React component, `App`, which returns a `<div>` element, and mounts it to the DOM using `ReactDOM.render` targeting the `#root` div. It imports `React` and `ReactDOM` from the React library, and includes external React and ReactDOM production scripts via CDN in the HTML file. The accompanying CSS sets the body margin to zero and hides overflow.
AI-generated descriptionReact Starter Code.