Merge pull request #357 from mrxiaozhuox/patch-1

This commit is contained in:
Jon Kelley 2022-04-17 00:44:32 -04:00 committed by GitHub
commit 510f07bcec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}
})
}