Add layout

This commit is contained in:
Dayamond
2025-10-17 14:19:22 +02:00
parent 4004517855
commit 872da61f5d
2 changed files with 15 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { Outlet } from "react-router";
function Layout(){
return (
<div>
<Outlet />
</div>
)
}
export default Layout;
+2
View File
@@ -1,9 +1,11 @@
import { createBrowserRouter } from "react-router";
import Layout from "./layout.jsx";
import HomePage from "./pages/Home/HomePage";
const router = createBrowserRouter([
{
path: "/",
Component: Layout,
children: [
{
path: "/",