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 = () => {
return (
<>
<h1>Work in Progress</h1>
</>
)
}
import {createBrowserRouter, RouterProvider} from "react-router-dom";
import Root from "@/common/layouts/Root";
import routes from "@/common/routes";
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;