HTML templates in react

We can create templates very easily by creating below react components.
  • Header Component
  • One or more Section component for storing content
  • Footer Component

import { StrictMode } from "react";
import ReactDOM from "react-dom";

import Header from "./Header";
import Section from "./Section";
import Footer from "./Footer";

const rootElement = document.getElementById("root");
ReactDOM.render(
  <StrictMode>
    <Header />
    <Section />
    <Footer />
  </StrictMode>,
  rootElement
);


Complex problems, Simple Solutions