2021-01-02 10:58:24 +00:00
|
|
|
import React from "react";
|
|
|
|
|
2022-04-03 23:39:18 +00:00
|
|
|
import { createRoot } from "react-dom/client";
|
2021-01-02 10:58:24 +00:00
|
|
|
|
2021-06-19 08:20:43 +00:00
|
|
|
import "@root/index.css";
|
|
|
|
import App from "@root/App";
|
|
|
|
import * as serviceWorker from "@root/serviceWorker";
|
2022-04-03 23:39:18 +00:00
|
|
|
import "@i18n/index.ts";
|
2021-01-02 10:58:24 +00:00
|
|
|
|
2022-06-21 00:35:30 +00:00
|
|
|
const nonce = document.head.querySelector("[property=csp-nonce][content]")?.getAttribute("content") || undefined;
|
2022-04-03 23:39:18 +00:00
|
|
|
const root = createRoot(document.getElementById("root")!);
|
2022-06-21 00:35:30 +00:00
|
|
|
root.render(<App nonce={nonce} />);
|
2019-11-18 23:37:36 +00:00
|
|
|
|
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
|
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
|
|
serviceWorker.unregister();
|