🌍 Public
Viewing a saved revision (read-only)
9abc314b6a5b4c9c8bb5ce1d5231a445
React Starter Code
This example shows a minimal React application that renders the text “Hello React” inside a web page. The code imports the `react` and `react-dom` libraries and defines a simple `App` component that returns a `div` element. It then uses `ReactDOM.render` to mount this component into the `#root` div referenced in the HTML file. The HTML loads React and ReactDOM from unpkg CDN libraries, and the app’s behavior is limited to displaying the static greeting.
AI-generated descriptionReact Starter Code