Experiment with call syntax only working for copy types
This commit is contained in:
19 files changed
+52
-76
No files matched your search
+3
-1
@@ -33,7 +33,9 @@ fn app() -> Element {
|
||||
Some(resp) => rsx! {
|
||||
h1 { "Select a dog breed!" }
|
||||
div { height: "500px", display: "flex",
|
||||
ul { flex: "50%", {breed_list} }
|
||||
ul { flex: "50%", {breed_list.value().cloned().unwrap_or_else(|| rsx! {
|
||||
"loading breeds..."
|
||||
})} }
|
||||
div { flex: "50%", BreedPic { breed } }
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user