summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/dom.tsx
blob: f8028af36aad538508e8dda0d2e7e18079bc28f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { StrictMode } from "react";
import ReactDOM from "react-dom";
import { useRoutes } from "react-router-dom";
import { AllProviders } from "./providers";
import { useRouteItems } from "./Router";

const RouteApp = () => {
  const items = useRouteItems();

  return useRoutes(items);
};

ReactDOM.render(
  <StrictMode>
    <AllProviders>
      <RouteApp />
    </AllProviders>
  </StrictMode>,
  document.getElementById("root")
);