mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-08 19:03:09 -05:00
* 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>
438 B
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",
]