depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
+2
-2
@@ -8,7 +8,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
spreadable_component {
|
||||
width: "10px",
|
||||
extra_data: "hello{1}",
|
||||
@@ -20,7 +20,7 @@ fn app() -> Element {
|
||||
}
|
||||
|
||||
fn spreadable_component(props: Props) -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
audio { ..props.attributes, "1: {props.extra_data}\n2: {props.extra_data2}" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user