diff --git a/examples/wasi_ssr_module/src/main.rs b/examples/wasi_ssr_module/src/main.rs index 9f34948c583..ea940f7eab4 100644 --- a/examples/wasi_ssr_module/src/main.rs +++ b/examples/wasi_ssr_module/src/main.rs @@ -5,8 +5,7 @@ mod router; use anyhow::Result; use router::{switch, Route}; -use yew::prelude::*; -use yew::{function_component, ServerRenderer}; +use yew::{prelude::*, LocalServerRenderer}; #[function_component] fn Content() -> Html { @@ -38,8 +37,8 @@ fn App() -> Html { } pub async fn render() -> Result { - let renderer = ServerRenderer::::new(); - let html_raw = renderer.render_async().await; + let renderer = LocalServerRenderer::::new(); + let html_raw = renderer.render().await; let mut body = String::new(); body.push_str("");