wip: fix some bugs around the rsx macro
This commit is contained in:
1 parent
9f7eb0f600
commit
339e450027
4 files changed
+57
-69
No files matched your search
@@ -8,31 +8,10 @@ use dioxus_html as dioxus_elements;
|
||||
fn main() {}
|
||||
|
||||
fn html_usage() {
|
||||
let r = html! {
|
||||
<div>
|
||||
"hello world"
|
||||
<div>
|
||||
</div>
|
||||
<div />
|
||||
"hello world"
|
||||
<Fragment>
|
||||
</Fragment>
|
||||
</div>
|
||||
};
|
||||
let r = rsx! {
|
||||
div {
|
||||
onclick: move |_| {}
|
||||
"hello world"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
fn rsx_uage() {
|
||||
// let r = html! {
|
||||
// <Fragment>
|
||||
// "hello world"
|
||||
// "hello world"
|
||||
// "hello world"
|
||||
// "hello world"
|
||||
// </Fragment>
|
||||
// };
|
||||
}
|
||||
Reference in new issue
Block a user