fixed components
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { useState } from 'react'
|
||||
import './App.css'
|
||||
import { BrowserRouter as Router, Routes, Route, Link, Outlet } from "react-router-dom"
|
||||
import Home from "./pages/home/home";
|
||||
import HomeLayout from "./layouts/HomeLayout";
|
||||
|
||||
|
||||
function App() {
|
||||
return (
|
||||
/* */
|
||||
<Router>
|
||||
<Routes>
|
||||
{/* Layout route */}
|
||||
<Route path="/" element={<HomeLayout />}>
|
||||
<Route index element={<Home />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Router>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user