remove cx.render

This commit is contained in:
Jonathan Kelley committed 2024-01-13 21:12:21 -08:00
1 parent fae0b08e61
commit 1dde044697
159 files changed
+600 -658

No files matched your search

+4 -4
View File
@@ -13,14 +13,14 @@ fn main() {
}
fn example() -> Element {
let items = use_state(|| {
let items = use_signal(|| {
vec![Thing {
a: "asd".to_string(),
b: 10,
}]
});
let things = use_ref(|| {
let things = use_signal(|| {
vec![Thing {
a: "asd".to_string(),
b: 10,
@@ -28,10 +28,10 @@ fn example() -> Element {
});
let things_list = things.read();
let mything = use_ref(|| Some(String::from("asd")));
let mything = use_signal(|| Some(String::from("asd")));
let mything_read = mything.read();
cx.render(rsx!(
rsx!(
div {
div { id: "asd",
"your neighborhood spiderman"