<div id="root">
</div>
const App = () => {
return (
<React.Fragment>
<h1>Fragments Sample</h1>
<h1>Fragments Sample</h1>
</React.Fragment>
)
}
const root = ReactDOM.createRoot(document.querySelector('#root'));
root.render(<App />);
View Compiled
This Pen doesn't use any external CSS resources.