mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-01 17:53:11 +00:00
20 lines
468 B
TypeScript
20 lines
468 B
TypeScript
|
|
import React from "react";
|
||
|
|
import ReactDOM from "react-dom/client";
|
||
|
|
import { AppRoot } from "@/app-root";
|
||
|
|
import { AppProviders } from "@/providers/AppProviders";
|
||
|
|
import "@/styles/globals.css";
|
||
|
|
|
||
|
|
const rootElement = document.getElementById("root");
|
||
|
|
|
||
|
|
if (!rootElement) {
|
||
|
|
throw new Error("Root element #root not found");
|
||
|
|
}
|
||
|
|
|
||
|
|
ReactDOM.createRoot(rootElement).render(
|
||
|
|
<React.StrictMode>
|
||
|
|
<AppProviders>
|
||
|
|
<AppRoot />
|
||
|
|
</AppProviders>
|
||
|
|
</React.StrictMode>,
|
||
|
|
);
|