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.
bazarr/frontend/src/dom.tsx

20 lines
457 B

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>
);
}