Fix tests for autofmt
This commit is contained in:
17 files changed
+287
-177
No files matched your search
@@ -0,0 +1,25 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
dioxus_desktop::launch(app);
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let a = 123;
|
||||
let b = 456;
|
||||
let c = 789;
|
||||
|
||||
render! {
|
||||
Component { a, b, c }
|
||||
Component { a, ..ComponentProps { a: 1, b: 2, c: 3 } }
|
||||
}
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn Component(cx: Scope, a: i32, b: i32, c: i32) -> Element {
|
||||
render! {
|
||||
div { "{a}" }
|
||||
div { "{b}" }
|
||||
div { "{c}" }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user