Skip to content

Commit

Permalink
Fix formatting in client side article (#413)
Browse files Browse the repository at this point in the history
* Fix formatting in client side article

* Update vars in wrangler.toml in order to make cloudflare pages preview deploys work

---------

Co-authored-by: Brett Beutell <[email protected]>
  • Loading branch information
oscarvz and brettimus authored Dec 18, 2024
1 parent 37a2eeb commit 2d428a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
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"

0 comments on commit 2d428a4

Please sign in to comment.