🚚 Renombra add_component por add_child
This commit is contained in:
parent
180cb9c2f6
commit
769eb384e4
12 changed files with 31 additions and 32 deletions
|
|
@ -10,7 +10,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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue