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

+4 -4
View File
@@ -6,7 +6,7 @@ fn main() {
}
#[component]
fn App(cx: Scope) -> Element {
fn App() -> Element {
cx.render(rsx! (
div {
p {
@@ -38,7 +38,7 @@ enum Route {
}
#[component]
fn Header(cx: Scope) -> Element {
fn Header() -> Element {
render! {
h1 { "Your app here" }
ul {
@@ -50,11 +50,11 @@ fn Header(cx: Scope) -> Element {
}
#[component]
fn Home(cx: Scope) -> Element {
fn Home() -> Element {
render!(h1 { "Home" })
}
#[component]
fn Settings(cx: Scope) -> Element {
fn Settings() -> Element {
render!(h1 { "Settings" })
}