implement ssr

This commit is contained in:
2026-09-06 23:29:00 -04:00
parent 4e381fe1bc
commit 06d31382e7
17 changed files with 477 additions and 56 deletions
+19
View File
@@ -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>
);
}