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

@@ -1,4 +1,4 @@
fn it_works() {
cx.render(rsx!({()}))
rsx!({()}))
}
+1 -1
View File
@@ -32,7 +32,7 @@ pub fn Explainer<'a>(
std::mem::swap(&mut left, &mut right);
}
cx.render(rsx! {
rsx! {
div { class: "flex flex-wrap items-center dark:text-white py-16 border-t font-light",
{left},
{right}
@@ -7,7 +7,7 @@ fn SaveClipboard() -> Element {
}
};
cx.render(rsx! {
rsx! {
div { "hello world", "hello world", "hello world" }
})
}
@@ -1,5 +1,5 @@
pub static Icon3: Component<()> = |cx| {
cx.render(rsx! {
rsx! {
svg {
class: "w-6 h-6",
stroke_linecap: "round",
@@ -1,5 +1,5 @@
fn it_works() {
cx.render(rsx! {
rsx! {
div {
span { "Description: ", {package.description.as_deref().unwrap_or("❌❌❌❌ missing")} }
}
+1 -1
View File
@@ -1,3 +1,3 @@
fn app() -> Element {
cx.render(rsx! { div { "hello world" } })
rsx! { div { "hello world" } })
}
@@ -1,5 +1,5 @@
fn app() -> Element {
cx.render(rsx! {
rsx! {
div {"hello world" }
})
}
+1 -1
View File
@@ -1,3 +1,3 @@
fn app() -> Element {
cx.render(rsx! { div { "hello world" } })
rsx! { div { "hello world" } })
}
@@ -1,5 +1,5 @@
fn app() -> Element {
cx.render(rsx! {
rsx! {
div {"hello world" }
})
}
@@ -1,5 +1,5 @@
fn ItWroks() {
cx.render(rsx! {
rsx! {
div { class: "flex flex-wrap items-center dark:text-white py-16 border-t font-light",
{left},
{right}
@@ -1,5 +1,5 @@
fn ItWroks() {
cx.render(rsx! {
rsx! {
div { class: "flex flex-wrap items-center dark:text-white py-16 border-t font-light", {left}, {right} }
})
}
@@ -1,5 +1,5 @@
fn ItWroks() {
cx.render(rsx! {
rsx! {
div { class: "flex flex-wrap items-center dark:text-white py-16 border-t font-light",
{left},
{right}
@@ -1,5 +1,5 @@
fn ItWroks() {
cx.render(rsx! {
rsx! {
div { class: "flex flex-wrap items-center dark:text-white py-16 border-t font-light", {left}, {right} }
})
}