feat: Router에 기본 페이지 추가
This commit is contained in:
parent
d747022520
commit
5e780470dc
@ -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 />,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user