autobrr/web/src/index.tsx
stacksmash76 4d753b76ed
refactor(web): update to react 18 and other deps (#285)
* Started refactoring codebase for React 18.

* Migrated to react-router v6 fully

* Removed useless test setup along with relevant packages.

* Removed leftover console.log statement

* feat: use status forbidden for onboarding

* refactor(web): use react hook form on login

* fix: comply with r18 shenanigans

* chore: update packages
2022-06-10 19:31:46 +02:00

25 lines
No EOL
577 B
TypeScript

import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "@fontsource/inter/variable.css";
import "./index.css";
import { App } from "./App";
import { InitializeGlobalContext } from "./utils/Context";
declare global {
interface Window { APP: APP; }
}
window.APP = window.APP || {};
// Initializes auth and theme contexts
InitializeGlobalContext();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const root = createRoot(document.getElementById("root")!);
root.render(
<StrictMode>
<App />
</StrictMode>
);