mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
828cc502f1
* add new autofmt sample * Feat: implement rustfmt::skip support for rsx * generally improve error handling with better expect messages * wip: nested rsx formatting and expression formatting * nested rsx formatting works * collapse autofmt crate * cast indent through macros * use proper whitespace * no more eating comments! * Use proper error handling
27 lines
574 B
R
27 lines
574 B
R
rsx! {
|
|
div {
|
|
Component {
|
|
adsasd: "asd",
|
|
onclick: move |_| {
|
|
let a = a;
|
|
},
|
|
div { "thing" }
|
|
}
|
|
Component {
|
|
asdasd: "asdasd",
|
|
asdasd: "asdasdasdasdasdasdasdasdasdasd",
|
|
..Props { a: 10, b: 20 },
|
|
}
|
|
Component {
|
|
asdasd: "asdasd",
|
|
..Props {
|
|
a: 10,
|
|
b: 20,
|
|
c: {
|
|
fn main() {}
|
|
},
|
|
},
|
|
"content"
|
|
}
|
|
}
|
|
}
|