it almost lives?

This commit is contained in:
Evan Almloff committed 2023-07-25 18:14:48 -07:00
1 parent d637ef187c
commit 5f0dd3af3e
43 files changed
+506 -244

No files matched your search

+3 -3
View File
@@ -37,7 +37,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn App(cx: Scope<AppProps>) -> Element {
render! {
h1 { "App" }
Router {
Router::<Route> {
config: {
let path = cx.props.path.parse().unwrap();
move || RouterConfig::default().history(MemoryHistory::with_initial_path(path))
@@ -57,7 +57,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn Fixed(cx: Scope) -> Element {
render! {
h2 { "Fixed" }
Outlet { }
Outlet::<Route> { }
}
}
@@ -79,7 +79,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn Parameter(cx: Scope, id: u8) -> Element {
render! {
h2 { "Parameter {id}" }
Outlet { }
Outlet::<Route> { }
}
}