Files
tesseract/web/src/main.tsx

18 lines
626 B
TypeScript
Raw Normal View History

2024-11-12 00:31:10 +00:00
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { createRouter, RouterProvider } from "@tanstack/react-router";
import { rootRoute } from "@/root-route.tsx";
import { workspacesRoutes } from "@/workspaces/routes.ts";
import "./index.css";
import {templateEditorRoute, templatesDashboardRoute} from "@/templates/routes.tsx";
const router = createRouter({
routeTree: rootRoute.addChildren([workspacesRoutes, templatesDashboardRoute, templateEditorRoute]),
});
createRoot(document.getElementById("root")!).render(
<StrictMode>
<RouterProvider router={router} />
</StrictMode>,
);