wip: go back to noisy lifetime solution
This commit is contained in:
1 parent
0545d27182
commit
8daf7a6ed8
31 files changed
+214
-170
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user