depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
@@ -7,7 +7,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
generic_child { data: 0 }
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ struct GenericChildProps<T: Display + PartialEq + Clone + 'static> {
|
||||
}
|
||||
|
||||
fn generic_child<T: Display + PartialEq + Clone>(props: GenericChildProps<T>) -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
div { "{props.data}" }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user