🚚 Renombra with_component por add_component

This commit is contained in:
Manuel Cillero 2025-09-04 01:11:03 +02:00
parent 19c16d962f
commit 0e4f10237d
5 changed files with 46 additions and 16 deletions

View file

@ -14,7 +14,7 @@ async fn hello_name(
) -> ResultPage<Markup, ErrorPage> {
let name = path.into_inner();
Page::new(Some(request))
.with_component(Html::with(move |_| html! { h1 { "Hello " (name) "!" } }))
.add_component(Html::with(move |_| html! { h1 { "Hello " (name) "!" } }))
.render()
}