remove key
This commit is contained in:
1 parent
6b03a60fee
commit
f703347936
2 files changed
+5
-3
No files matched your search
@@ -23,9 +23,11 @@ fn app(cx: Scope) -> Element {
|
||||
width: format!("{}px", count),
|
||||
background_color: "#999999",
|
||||
onclick: move |_| {
|
||||
count.modify(|count| *count + 1);
|
||||
count.modify(|count| *count + 10);
|
||||
},
|
||||
"High-Five counter: {count}",
|
||||
p{
|
||||
"High-Five counter: {count}",
|
||||
}
|
||||
Comp{
|
||||
color: "#083289"
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ fn build_node<'a>(
|
||||
listeners,
|
||||
attributes.as_slice(),
|
||||
children.as_slice(),
|
||||
Some(format_args!("{}", key)),
|
||||
None,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in new issue
Block a user