Fork of React Starter
✓ Published0🌍 Public
This example shows a minimal React application that renders a centered “Hello React!” message. The code defines an `App` component returning a `<div>` with the message text, then uses `createRoot` from `react-dom` to mount that component into the `#root` element in `index.html`. The page’s styling, set via a `.message` class in the embedded `<style>` tag, controls the font size and text alignment. The HTML file loads React and ReactDOM from unpkg CDN, while the JavaScript imports `React` and `createRoot` directly. No data or interaction is present beyond this static render.
AI-generated descriptionReact Starter code.
MIT Licensed