dyn_text now receives anything that implements AsDynText.

This commit is contained in:
2024-02-16 19:19:45 +00:00
parent 2e175babd1
commit 8fd25d7d0f
3 changed files with 107 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ fn page() -> Element {
html::div().with_children([
html::p().with_dyn_text({
let query = query.clone();
move || Some(format!("{:?}", query.get()))
move || format!("{:?}", query.get())
}),
html::hr(),
dynatos_router::anchor("/?a=5").with_text("5"),