You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { StrictMode } from "react";
|
|
|
|
import { createRoot } from "react-dom/client";
|
|
|
|
import { Router } from "./Router";
|
|
|
|
import { AllProviders } from "./providers";
|
|
|
|
|
|
|
|
const container = document.getElementById("root");
|
|
|
|
|
|
|
|
if (container === null) {
|
|
|
|
Error("Cannot initialize app, root not found");
|
|
|
|
} else {
|
|
|
|
const root = createRoot(container);
|
|
|
|
root.render(
|
|
|
|
<StrictMode>
|
|
|
|
<AllProviders>
|
|
|
|
<Router />
|
|
|
|
</AllProviders>
|
|
|
|
</StrictMode>
|
|
|
|
);
|
|
|
|
}
|