Update localstate.md

This commit is contained in:
YuKun Liu authored and GitHub committed 2022-04-17 12:27:41 +08:00
1 parent 78e6064c9b
commit c9537a4c41
1 file changed
+1 -1
+1 -1
View File
@@ -19,8 +19,8 @@ cx.render(rsx!{
ul {
todos.read().iter().enumerate().map(|(id, todo)| rsx!{
li {
onhover: move |_| *todos.write()[id].is_hovered = true,
h1 { "{todo.contents}" }
onhover: move |_| *todos.write()[id].is_hovered = true;
}
})
}