@@ -54,7 +54,8 @@ impl Render for Counter {
54 button(&cx)
54 button(&cx)
55 .on("click", |root, vdom, _event| {
55 .on("click", |root, vdom, _event| {
56 // Same as above, but decrementing instead of incrementing.
56 // Same as above, but decrementing instead of incrementing.
57− root.unwrap_mut::<Counter>().decrement();
57+ let counter = root.unwrap_mut::<Counter>();
58 vdom.schedule_render();
59 vdom.schedule_render();
60 .children([text("-")])
61 .children([text("-")])