Seed: editorial template (15 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 ArticlePage from "@/pages/Article";
|
||||||
|
import CategoryPage from "@/pages/Category";
|
||||||
|
import ContributorsPage from "@/pages/Contributors";
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
return (
|
||||||
|
<BrowserRouter>
|
||||||
|
<Routes>
|
||||||
|
<Route path="/" element={<IndexPage />} />
|
||||||
|
<Route path="/article" element={<ArticlePage />} />
|
||||||
|
<Route path="/category" element={<CategoryPage />} />
|
||||||
|
<Route path="/contributors" element={<ContributorsPage />} />
|
||||||
|
</Routes>
|
||||||
|
</BrowserRouter>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
||||||
Reference in New Issue
Block a user