Seed: travel template (16 files)
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
||||
import IndexPage from "@/pages/Index";
|
||||
import DestinationsPage from "@/pages/Destinations";
|
||||
import DestinationDetailPage from "@/pages/DestinationDetail";
|
||||
import ContactPage from "@/pages/Contact";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<IndexPage />} />
|
||||
<Route path="/destinations" element={<DestinationsPage />} />
|
||||
<Route path="/destination/detail" element={<DestinationDetailPage />} />
|
||||
<Route path="/contact" element={<ContactPage />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user