We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42990ae commit 49cba96Copy full SHA for 49cba96
โsrc/main.tsxโ
@@ -4,17 +4,25 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
4
import './styles/index.css';
5
import App from './App.tsx';
6
import TextInputForm from './pages/InputFormTest.tsx';
7
+import { NotFound } from './pages/notfound.tsx';
8
9
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
10
11
const router = createBrowserRouter([
12
{
13
path: '/',
14
element: <App />,
15
+ errorElement: <NotFound />,
16
},
17
+
18
- path: '/test/inputForm',
- element: <TextInputForm />,
19
+ path: '/test',
20
+ children: [
21
+ {
22
+ path: 'inputForm',
23
+ element: <TextInputForm />,
24
+ },
25
+ ],
26
27
]);
28
const queryClient = new QueryClient();
0 commit comments