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
@@ -15,7 +15,7 @@ const IS_LOGGING_ENABLED: bool = true;
#[test]
fn please_work() {
static App: FC<()> = |cx| {
static App: FC<()> = |cx, props| {
cx.render(rsx! {
div {
hidden: "true"
@@ -29,7 +29,7 @@ fn please_work() {
})
};
static Child: FC<()> = |cx| {
static Child: FC<()> = |cx, props| {
cx.render(rsx! {
div { "child" }
})