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
@@ -32,7 +32,7 @@ enum Route {
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn Blog(cx: Scope, id: i32) -> Element {
|
||||
fn Blog(id: i32) -> Element {
|
||||
render! {
|
||||
Link { to: Route::Home {}, "Go to counter" }
|
||||
table {
|
||||
@@ -50,9 +50,9 @@ fn Blog(cx: Scope, id: i32) -> Element {
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn Home(cx: Scope) -> Element {
|
||||
let mut count = use_state(cx, || 0);
|
||||
let text = use_state(cx, || "...".to_string());
|
||||
fn Home() -> Element {
|
||||
let mut count = use_state(|| 0);
|
||||
let text = use_state(|| "...".to_string());
|
||||
|
||||
cx.render(rsx! {
|
||||
Link {
|
||||
|
||||
Reference in new issue
Block a user