Updated the App.jsx
This commit is contained in:
parent
65e6424145
commit
0049060eff
23
src/App.jsx
23
src/App.jsx
@ -1,9 +1,16 @@
|
|||||||
const App = () => {
|
import {createBrowserRouter, RouterProvider} from "react-router-dom";
|
||||||
return (
|
import Root from "@/common/layouts/Root";
|
||||||
<>
|
import routes from "@/common/routes";
|
||||||
<h1>Work in Progress</h1>
|
import NotFound from "@/pages/NotFound";
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App
|
const router = createBrowserRouter([
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
element: <Root/>,
|
||||||
|
children: routes,
|
||||||
|
errorElement: <NotFound />
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
|
||||||
|
const App = () => <RouterProvider router={router}/>;
|
||||||
|
export default App;
|
Loading…
x
Reference in New Issue
Block a user