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
@@ -3,12 +3,12 @@ use recoil::*;
|
||||
|
||||
const COUNT: Atom<i32> = |_| 0;
|
||||
|
||||
static App: FC<()> = |ctx| {
|
||||
use_init_recoil_root(ctx, |_| {});
|
||||
static App: FC<()> = |cx| {
|
||||
use_init_recoil_root(cx, |_| {});
|
||||
|
||||
let (count, set_count) = use_read_write(&ctx, &COUNT);
|
||||
let (count, set_count) = use_read_write(&cx, &COUNT);
|
||||
|
||||
rsx! { in ctx,
|
||||
rsx! { in cx,
|
||||
div {
|
||||
"Count: {count}"
|
||||
br {}
|
||||
|
||||
Reference in new issue
Block a user