implement ssr
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { Route, Routes } from "react-router-dom";
|
||||
|
||||
import Home from "./pages/home";
|
||||
import LogIn from "./pages/login";
|
||||
import Post from "./pages/post";
|
||||
import Editor from "./pages/editor";
|
||||
|
||||
/** The route tree, shared by the browser and server entry points. */
|
||||
export default function App() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/login" element={<LogIn />} />
|
||||
<Route path="/post/:slug" element={<Post />} />
|
||||
<Route path="/editor" element={<Editor />} />
|
||||
<Route path="/editor/:slug" element={<Editor />} />
|
||||
</Routes>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user