feat: Router에 기본 페이지 추가

This commit is contained in:
jhynsoo 2024-07-21 00:36:37 +09:00
parent d747022520
commit 5e780470dc

View File

@ -1,12 +1,20 @@
import { createBrowserRouter } from 'react-router-dom';
import PageLayout from './components/Layout/PageLayout';
import NotFoundPage from './pages/NotFoundPage/NotFoundPage';
import { HomePage } from './pages/HomePage';
import { NotFoundPage } from './pages/NotFoundPage';
const router = createBrowserRouter([
{
path: '',
element: <PageLayout />,
errorElement: <NotFoundPage />,
children: [
{
index: true,
path: '',
element: <HomePage />,
},
],
},
]);