wip: go back to noisy lifetime solution

This commit is contained in:
Jonathan Kelley committed 2021-12-14 02:27:59 -05:00
1 parent 0545d27182
commit 8daf7a6ed8
31 files changed
+214 -170

No files matched your search

+2 -6
View File
@@ -9,7 +9,7 @@ fn main() {
let _ = VirtualDom::new(App);
}
fn App(cx: Context, _props: &()) -> Element {
fn App(cx: Scope<()>) -> Element {
//
cx.render(rsx!(
div {
@@ -18,11 +18,7 @@ fn App(cx: Context, _props: &()) -> Element {
))
}
struct ChildProps<'a> {
click_handler: EventHandler<'a>,
}
fn Child(cx: Context, _props: &()) -> Element {
fn Child(cx: Scope<()>) -> Element {
//
cx.render(rsx!(
div {