mirror of
https://github.com/yewstack/yew.git
synced 2026-02-01 17:26:28 +00:00
SSR Router Example
This example is the same as the function router example, but with server-side rendering and hydration support. It reuses the same codebase of the function router example.
How to run this example
- Build Hydration Bundle
trunk build examples/ssr_router/index.html
- Run the server
cargo run --features=ssr --bin ssr_router_server -- --dir examples/ssr_router/dist
- Open Browser
Navigate to http://localhost:8080/ to view results.