<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
This Pen doesn't use any external CSS resources.