🌍 Public
Viewing a saved revision (read-only)
27a76496fe094275a3bdf757948713ff
React Starter
This example renders a single centered message, "Hello React!", using React and ReactDOM. It demonstrates a minimal React setup with two external library scripts loaded via CDN and a separate bundle.js file. The component is defined as a functional component and mounted into the root DOM element using ReactDOM.render. The styling relies on a CSS class applied directly to the div, with the font-size and alignment set in an inline style block within the HTML document.
AI-generated descriptionReact Starter code.