mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-04 12:31:58 +00:00
19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
|
|
import React from "react";
|
||
|
|
import ReactDOM from "react-dom/client";
|
||
|
|
import { Routes } from "@generouted/react-router";
|
||
|
|
import { AppProviders } from "@/providers/AppProviders";
|
||
|
|
|
||
|
|
const rootElement = document.getElementById("root");
|
||
|
|
|
||
|
|
if (!rootElement) {
|
||
|
|
throw new Error("Root element #root not found");
|
||
|
|
}
|
||
|
|
|
||
|
|
ReactDOM.createRoot(rootElement).render(
|
||
|
|
<React.StrictMode>
|
||
|
|
<AppProviders>
|
||
|
|
<Routes />
|
||
|
|
</AppProviders>
|
||
|
|
</React.StrictMode>,
|
||
|
|
);
|