polish: change in cx to cx

This commit is contained in:
Jonathan Kelley committed 2021-09-16 13:20:04 -04:00
1 parent 0ded32e184
commit 9971ff215d
21 files changed
+426 -320

No files matched your search

+2 -2
View File
@@ -98,7 +98,7 @@ Sometimes you want a signal to propagate across your app, either through far-awa
const TITLE: Atom<String> = || "".to_string();
const Provider: FC<()> = |cx| {
let title = use_signal(&cx, &TITLE);
rsx!(in cx, input { value: title })
rsx!(cx, input { value: title })
};
```
@@ -108,7 +108,7 @@ If we use the `TITLE` atom in another component, we can cause updates to flow be
const Receiver: FC<()> = |cx| {
let title = use_signal(&cx, &TITLE);
log::info!("This will only be called once!");
rsx!(in cx,
rsx!(cx,
div {
h1 { "{title}" }
div {}