Fix the router and stub out a number of crates to get compiling
This commit is contained in:
226 files changed
+1057
-1482
No files matched your search
@@ -5,10 +5,10 @@ fn main() {
|
||||
dioxus_desktop::launch(app);
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let toggled = use_state(cx, || false);
|
||||
fn app() -> Element {
|
||||
let toggled = use_state(|| false);
|
||||
|
||||
use_global_shortcut(cx, "ctrl+s", {
|
||||
use_global_shortcut("ctrl+s", {
|
||||
to_owned![toggled];
|
||||
move || toggled.modify(|t| !*t)
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user