feat: transition to cx, props
This commit is contained in:
1 parent
f1cff845ce
commit
bfdcb20437
14 files changed
+88
-50
No files matched your search
@@ -20,8 +20,8 @@ fn manual_diffing() {
|
||||
value: Shared<&'static str>,
|
||||
}
|
||||
|
||||
static App: FC<AppProps> = |cx| {
|
||||
let val = cx.value.borrow();
|
||||
static App: FC<AppProps> = |cx, props| {
|
||||
let val = props.value.borrow();
|
||||
cx.render(rsx! { div { "{val}" } })
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user