Add React web scaffold

This commit is contained in:
Asep Haryana Saputra
2026-05-22 12:41:55 +00:00
parent 393779f81d
commit 62f45ed454
17 changed files with 452 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { DashboardPage } from '@/pages/dashboard-page';
import { LandingPage } from '@/pages/landing-page';
const queryClient = new QueryClient();
const router = createBrowserRouter([
{
path: '/',
element: <LandingPage />,
},
{
path: '/dashboard',
element: <DashboardPage />,
},
]);
export function App() {
return (
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
);
}