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

Fix formatting in client side article #413

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions www/src/content/blog/2024-12-06-client-side-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ browser!
We'll achieve this with client-side hydration. The app gets rendered
server-side first, and then the client-side script takes over. The [React
docs](https://react.dev/reference/react-dom/client/hydrateRoot#hydrating-server-rendered-html)
describe it well: > [It] will “attach” your components’ logic to the initial
generated HTML from the > server. Hydration turns the initial HTML snapshot
from the server into a fully > interactive app that runs in the browser.
describe it well:
> [It] will “attach” your components’ logic to the initial generated HTML from
> the server. Hydration turns the initial HTML snapshot from the server into a
> fully interactive app that runs in the browser.
</Aside>

In this guide we'll go over how to build an Hono app with client-side logic,
Expand Down Expand Up @@ -198,7 +199,10 @@ browser environment:
{
"compilerOptions": {
//...
"lib": ["ESNext", "DOM"]
"lib": [
"ESNext",
"DOM"
]
// ...
}
}
Expand Down
3 changes: 3 additions & 0 deletions www/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name = "fpx-site"
pages_build_output_dir = "./dist"

[vars]
NODE_VERSION = "22.11.0"
Loading