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
@@ -55,8 +55,8 @@ struct AppProps {
|
||||
|
||||
#[allow(unused)]
|
||||
fn app(cx: Scope<AppProps>) -> Element {
|
||||
let mut count = use_state(cx, || cx.props.count);
|
||||
let text = use_state(cx, || "...".to_string());
|
||||
let mut count = use_state(|| cx.props.count);
|
||||
let text = use_state(|| "...".to_string());
|
||||
|
||||
cx.render(rsx! {
|
||||
h1 { "hello axum! {count}" }
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use axum::{extract::ws::WebSocketUpgrade, response::Html, routing::get, Router};
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let mut num = use_state(cx, || 0);
|
||||
fn app() -> Element {
|
||||
let mut num = use_state(|| 0);
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let mut num = use_state(cx, || 0);
|
||||
let eval_result = use_state(cx, String::new);
|
||||
fn app() -> Element {
|
||||
let mut num = use_state(|| 0);
|
||||
let eval_result = use_state(String::new);
|
||||
|
||||
let eval_provider = dioxus_html::prelude::use_eval(cx);
|
||||
|
||||
|
||||
Reference in new issue
Block a user