Smallest Example
<div id="root">
<!-- This element's contents will be replaced with your component. -->
</div>
const root = ReactDOM.createRoot(
document.getElementById('root'));
root.render(<h1>Hello, world 123!</h1>);
OUTPUT
Hello, world 123!
<div id="root">
<!-- This element's contents will be replaced with your component. -->
</div>
const root = ReactDOM.createRoot(
document.getElementById('root'));
root.render(<h1>Hello, world 123!</h1>);
OUTPUT
Hello, world 123!