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