Updated the App.jsx

This commit is contained in:
Mathias Wagner 2023-07-07 01:09:23 +02:00
parent 65e6424145
commit 0049060eff
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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;