docs: update local examples and docs to support new syntaxes

This commit is contained in:
Jonathan Kelley committed 2021-12-15 15:56:53 -05:00
1 parent e495b09bf1
commit 4de16c4779
118 files changed
+520 -1154

No files matched your search

+3 -3
View File
@@ -8,11 +8,11 @@
use dioxus::prelude::*;
fn main() {
env_logger::init();
dioxus::desktop::launch(App, |c| c);
dioxus::desktop::launch(App);
}
pub static App: Component<()> = |cx, _| {
let state = use_state(cx, PlayerState::new);
pub static App: Component<()> = |cx| {
let state = use_state(&cx, PlayerState::new);
let is_playing = state.is_playing();