Fix the router and stub out a number of crates to get compiling

This commit is contained in:
Jonathan Kelley committed 2024-01-13 20:51:37 -08:00
1 parent 4c6e515da4
commit fae0b08e61
226 files changed
+1057 -1482

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ use dioxus::prelude::*;
use dioxus_web::Config;
use web_sys::window;
fn app(cx: Scope) -> Element {
fn app() -> Element {
cx.render(rsx! {
div { h1 { "thing 1" } }
div { h2 { "thing 2" } }
@@ -21,7 +21,7 @@ fn app(cx: Scope) -> Element {
}
#[allow(non_snake_case)]
fn Bapp(cx: Scope) -> Element {
fn Bapp() -> Element {
cx.render(rsx! {
div { h1 { "thing 1" } }
div { h2 { "thing 2" } }
+3 -3
View File
@@ -5,9 +5,9 @@ fn main() {
dioxus_web::launch(app);
}
fn app(cx: Scope) -> Element {
let count = use_ref(cx, || 0);
let started = use_state(cx, || false);
fn app() -> Element {
let count = use_ref(|| 0);
let started = use_state(|| false);
let start = move || {
if !*started.get() {