mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
Update <For/>
in example
This commit is contained in:
parent
109863c59a
commit
86d5f4c2e4
1 changed files with 5 additions and 3 deletions
|
@ -63,14 +63,16 @@ pub fn Counters(cx: Scope) -> impl IntoView {
|
|||
" counters."
|
||||
</p>
|
||||
<ul>
|
||||
<For each=counters key=|counter| counter.0>{
|
||||
move |(id, (value, set_value)): (usize, (ReadSignal<i32>, WriteSignal<i32>))| {
|
||||
<For
|
||||
each=counters
|
||||
key=|counter| counter.0
|
||||
view=move |(id, (value, set_value)): (usize, (ReadSignal<i32>, WriteSignal<i32>))| {
|
||||
view! {
|
||||
cx,
|
||||
<Counter id value set_value/>
|
||||
}
|
||||
}
|
||||
}</For>
|
||||
/>
|
||||
</ul>
|
||||
</>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue