docs: remove all usages of static closure syntax and update readme

This commit is contained in:
Jonathan Kelley committed 2022-01-02 18:35:38 -05:00
1 parent d1560450ba
commit cafb7df736
66 files changed
+792 -2019

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ pub enum Route {
NotFound,
}
static App: Component = |cx| {
fn app(cx: Scope) -> Element {
let route = use_router(&cx, Route::parse);
cx.render(rsx! {
@@ -42,7 +42,7 @@ static App: Component = |cx| {
}
footer {}
})
};
}
impl Route {
// Generate the appropriate route from the "tail" end of the URL