feat: transition to cx, props

This commit is contained in:
Jonathan Kelley committed 2021-09-21 13:13:15 -04:00
1 parent f1cff845ce
commit bfdcb20437
14 files changed
+88 -50

No files matched your search

+2 -2
View File
@@ -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}" } })
};