docs: fix `For` view prop name (closes #1813) (#1814)

This commit is contained in:
Greg Johnston 2023-09-30 15:49:26 -04:00 committed by GitHub
parent d869bc6675
commit 6b40ca36a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -229,9 +229,9 @@ fn DynamicList(
// can only grow, because moving items around inside the list
// means their indices will change and they will all rerender
key=|counter| counter.0
// the view function receives each item from your `each` iterator
// `children` receives each item from your `each` iterator
// and returns a view
view=move |(id, (count, set_count))| {
children=move |(id, (count, set_count))| {
view! {
<li>
<button