Components participate in event handlers
This commit is contained in:
12 files changed
+86
-54
No files matched your search
@@ -22,9 +22,7 @@ fn DemoC(cx: Scope, x: i32) -> Element {
|
||||
|
||||
result.throw()?;
|
||||
|
||||
cx.render(rsx! {
|
||||
h1 {
|
||||
"{x}"
|
||||
}
|
||||
})
|
||||
render! {
|
||||
h1 { "{x}" }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user