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
@@ -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" } }
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user