depreciate the render macro

This commit is contained in:
Evan Almloff committed 2024-01-16 13:18:46 -06:00
1 parent 90d0164b9e
commit e65c5f0eb3
148 files changed
+459 -458

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ fn app() -> Element {
let mut idx = use_signal(|| 0);
let onhover = |_| println!("go!");
render! {
rsx! {
div {
button {
onclick: move |_| {
@@ -48,5 +48,5 @@ fn app() -> Element {
#[component]
fn ChildExample(i: i32, onhover: EventHandler<MouseEvent>) -> Element {
render! { li { onmouseover: move |e| onhover.call(e), "{i}" } }
rsx! { li { onmouseover: move |e| onhover.call(e), "{i}" } }
}