Lazy load page components

This commit is contained in:
Alex Gleason committed 2025-06-01 16:26:09 -05:00
1 parent 3a34db8320
commit 8bdff8da6d
4 files changed
+23 -4

No files matched your search

+5 -3
View File
@@ -1,9 +1,11 @@
import { lazy } from "react";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Index from "./pages/Index";
import NotFound from "./pages/NotFound";
import { ScrollToTop } from "./components/ScrollToTop";
// Lazy load page components
const Index = lazy(() => import("./pages/Index"));
const NotFound = lazy(() => import("./pages/NotFound"));
export function AppRouter() {
return (
<BrowserRouter>