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

+5 -5
View File
@@ -47,14 +47,14 @@ enum Route {
}
#[component]
fn App(cx: Scope) -> Element {
fn App() -> Element {
render! {
Router::<Route> { }
}
}
#[component]
fn Index(cx: Scope) -> Element {
fn Index() -> Element {
render! {
h1 { "Index" }
Link {
@@ -65,7 +65,7 @@ fn Index(cx: Scope) -> Element {
}
#[component]
fn Blog(cx: Scope) -> Element {
fn Blog() -> Element {
render! {
h1 { "Blog" }
Outlet::<Route> { }
@@ -73,7 +73,7 @@ fn Blog(cx: Scope) -> Element {
}
#[component]
fn BlogList(cx: Scope) -> Element {
fn BlogList() -> Element {
render! {
h2 { "List of blog posts" }
Link {
@@ -88,7 +88,7 @@ fn BlogList(cx: Scope) -> Element {
}
#[component]
fn BlogPost(cx: Scope, blog_id: usize) -> Element {
fn BlogPost(blog_id: usize) -> Element {
render! {
h2 { "Blog Post" }
}