Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: updates #389

Merged
merged 3 commits into from
Jan 17, 2024
Merged

docs: updates #389

merged 3 commits into from
Jan 17, 2024

Conversation

sandren
Copy link
Collaborator

@sandren sandren commented Jan 17, 2024

No description provided.

Copy link

vercel bot commented Jan 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Jan 17, 2024 10:05am

Copy link

codesandbox-ci bot commented Jan 17, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3905011:

Sandbox Source
Vanilla Typescript Configuration
React Configuration
React TypeScript Configuration

@@ -90,7 +94,9 @@ To learn more about the modern React architecture, we recommend [Making Sense of

The entry point for routing in Waku projects is `./src/entries.tsx`. Export the `createPages` function to create your layouts and pages programatically.

Both `createLayout` and `createPage` accept a configuration object to specify the route path, React component, and render method (`'static'` for SSG or `'dynamic'` for SSR). Layout components must accept a `children` prop.
Both `createLayout` and `createPage` accept a configuration object to specify the route path, React component, and render method. Waku currently supports two options: `'static'` for static prerendering (SSG) or `'dynamic'` for server-side rendering (SSR).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's not describe but technically interesting is that it works without SSR.
In that case, 'static' means static RSC and 'dynamic' means dynamic RSC. Even with SSR, the subsequent updates are RSC only and static/dynamic matter.

It's a hard concept and may not fit in README though.

@dai-shi dai-shi merged commit a7e909f into dai-shi:main Jan 17, 2024
28 checks passed
@@ -0,0 +1,90 @@
---
slug: minimal-api
title: Minimal API
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants