<div id="root"></div>
"use strict";

// 1. Create a React element
const element = (
  <p id="howdy">Howdy world!</p>
);

// 2. Create and embed our React DOM
const container = document.querySelector('#root');
const root = ReactDOM.createRoot(container);

// 3. Render the React element in our React DOM
root.render(element);
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js