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 = () => {
|
||||
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;
|
Loading…
x
Reference in New Issue
Block a user