forked from kriasoft/react-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
28 lines (25 loc) · 858 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-FileCopyrightText: 2014-present Kriasoft */
/* SPDX-License-Identifier: MIT */
import { CssBaseline } from "@mui/material";
import { SnackbarProvider } from "notistack";
import * as React from "react";
import * as ReactDOM from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import { RecoilRoot } from "recoil";
import { router } from "./routes/index.js";
import { ThemeProvider } from "./theme/index.js";
const container = document.getElementById("root") as HTMLElement;
const root = ReactDOM.createRoot(container);
// Render the top-level React component
root.render(
<React.StrictMode>
<RecoilRoot>
<ThemeProvider>
<SnackbarProvider>
<CssBaseline />
<RouterProvider router={router} />
</SnackbarProvider>
</ThemeProvider>
</RecoilRoot>
</React.StrictMode>,
);