wip: examples

This commit is contained in:
Jonathan Kelley committed 2021-09-21 12:11:04 -04:00
1 parent adf202eab9
commit f1cff845ce
10 files changed
+80 -26

No files matched your search

+2 -2
View File
@@ -22,11 +22,11 @@ pub static App: FC<()> = |cx| {
h3 {"The radio is... {is_playing}!"}
button {
"Pause"
onclick: move |_| state.get_mut().reduce(PlayerAction::Pause)
onclick: move |_| state.modify().reduce(PlayerAction::Pause)
}
button {
"Play"
onclick: move |_| state.get_mut().reduce(PlayerAction::Play)
onclick: move |_| state.modify().reduce(PlayerAction::Play)
}
}
})