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