cut out a number of changes from the hr PR (#2580)
This commit is contained in:
1 parent
9bf46968cd
commit
b30810e486
12 files changed
+89
-18
No files matched your search
@@ -12,17 +12,17 @@ fn app() -> Element {
|
||||
rsx!(
|
||||
div {
|
||||
// Use Map directly to lazily pull elements
|
||||
{(0..10).map(|f| rsx! { "{f}" })},
|
||||
{(0..10).map(|f| rsx! { "{f}" })}
|
||||
|
||||
// Collect into an intermediate collection if necessary, and call into_iter
|
||||
{["a", "b", "c", "d", "e", "f"]
|
||||
.into_iter()
|
||||
.map(|f| rsx! { "{f}" })
|
||||
.collect::<Vec<_>>()
|
||||
.into_iter()},
|
||||
.into_iter()}
|
||||
|
||||
// Use optionals
|
||||
{Some(rsx! { "Some" })},
|
||||
{Some(rsx! { "Some" })}
|
||||
|
||||
// use a for loop where the body itself is RSX
|
||||
for name in 0..10 {
|
||||
|
||||
Reference in new issue
Block a user