diff --git a/packages/docs/src/App.tsx b/packages/docs/src/App.tsx
index bb5be45..4c028fa 100644
--- a/packages/docs/src/App.tsx
+++ b/packages/docs/src/App.tsx
@@ -182,16 +182,22 @@ export const routes = [
],
}),
route({
- path: "/react-server-components",
- component: defer(
bindRoute - Binds a component to a partial route
definition (see{" "}
- Two-Phase Route Definitions)
+ Two-Phase Route Definitions)
ActionArgs, LoaderArgs,{" "}
@@ -363,10 +363,9 @@ const routes = [
, and hooks, use the main @funstack/router entry point.
- See the{" "}
- React Server Components{" "}
- guide for a full walkthrough of using the server entry point, and the{" "}
- Two-Phase Route Definitions{" "}
+ See the React Server Components guide for a
+ full walkthrough of using the server entry point, and the{" "}
+ Two-Phase Route Definitions{" "}
guide for using bindRoute() to split route definitions
across the RSC boundary.
Designed to work with React Server Components.{" "} - Learn more + Learn more
diff --git a/packages/docs/src/pages/LearnIndexPage.tsx b/packages/docs/src/pages/LearnIndexPage.tsx index f8c8c87..e158cb3 100644 --- a/packages/docs/src/pages/LearnIndexPage.tsx +++ b/packages/docs/src/pages/LearnIndexPage.tsx @@ -72,27 +72,25 @@ export function LearnIndexPage() {
- Learn how to use FUNSTACK Router with React Server Components. Define
- routes in server modules using the{" "}
- @funstack/router/server entry point and keep your client
- bundle lean by separating route definitions from runtime router code.
-
- Use loaders, typed hooks (useRouteParams,{" "}
- useRouteData, useRouteState), and navigation
- state alongside React Server Components. This guide shows how to split
- route definitions across the server/client boundary using{" "}
- bindRoute() so client components get full type safety.
+ FUNSTACK Router is designed to work with React Server Components.
+ These guides cover how to define routes in server modules and use
+ route features alongside RSC:
@funstack/router/server entry point and keep your
+ client bundle lean
+ bindRoute()
+ If you only need loaders to run at build time (not on the client), - consider using{" "} - React Server Components{" "} - with SSG. RSC lets you fetch data on the server during the build and - send the result as static HTML, without shipping loader code to the - client. + consider using React Server Components with + SSG. RSC lets you fetch data on the server during the build and send + the result as static HTML, without shipping loader code to the client.