🚚 Renombra add_component por add_child

This commit is contained in:
Manuel Cillero 2025-10-18 21:33:29 +02:00
parent 180cb9c2f6
commit 769eb384e4
12 changed files with 31 additions and 32 deletions

View file

@ -60,7 +60,7 @@ impl Extension for HelloWorld {
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(request)
.add_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
.add_child(Html::with(|_| html! { h1 { "Hello World!" } }))
.render()
}