thaw/demo_markdown/docs/_guide/server_sider_rendering.md
Nibodhika 084f3010a0
Improving server side rendering docs to include feature (#221)
* Improving server side rendering docs to include feature

* Update server_sider_rendering.md

---------

Co-authored-by: Vito Chiarella <vchiarella@demonware.net>
Co-authored-by: luoxiaozero <48741584+luoxiaozero@users.noreply.github.com>
2024-07-31 23:45:05 +08:00

438 B

Server Sider Rendering

To enable the ssr mode, the following configurations are required:

thaw = { ..., features = ["ssr"] }

To enable the hydrate mode, the following configurations are required:

thaw = { ..., features = ["hydrate"] }

Remember to add thaw to your Cargo.toml file in the corresponding feature, e.g.

[features]
...
hydrate = [..., "thaw/hydrate"]
ssr = [
  ...
  "thaw/ssr",
]