thaw/demo_markdown/docs/_guide/server_sider_rendering.md

26 lines
438 B
Markdown
Raw Normal View History

# Server Sider Rendering
To enable the ssr mode, the following configurations are required:
```toml
2024-02-09 22:44:22 +08:00
thaw = { ..., features = ["ssr"] }
```
To enable the hydrate mode, the following configurations are required:
```toml
2024-02-09 22:44:22 +08:00
thaw = { ..., features = ["hydrate"] }
```
Remember to add thaw to your `Cargo.toml` file in the corresponding feature, e.g.
```toml
[features]
...
hydrate = [..., "thaw/hydrate"]
ssr = [
...
"thaw/ssr",
]
```