chore: rename ctx to cx
This commit is contained in:
1 parent
23c14078bb
commit
81382e7044
99 files changed
+789
-664
No files matched your search
@@ -19,11 +19,11 @@ fn update_title(api: &RecoilApi) {
|
||||
}
|
||||
}
|
||||
|
||||
static App: FC<()> = |ctx| {
|
||||
let title = use_read(&ctx, &TITLE);
|
||||
let next_light = use_recoil_api(&ctx, |api| move |_| update_title(&api));
|
||||
static App: FC<()> = |cx| {
|
||||
let title = use_read(&cx, &TITLE);
|
||||
let next_light = use_recoil_api(&cx, |api| move |_| update_title(&api));
|
||||
|
||||
rsx! { in ctx,
|
||||
rsx! { in cx,
|
||||
div {
|
||||
"{title}"
|
||||
button { onclick: {next_light}, "Next light" }
|
||||
|
||||
Reference in new issue
Block a user