Fix tests for autofmt

This commit is contained in:
Jonathan Kelley committed 2024-01-10 22:41:40 -08:00
1 parent d9b84f9f8f
commit fa9d92f956
17 files changed
+287 -177

No files matched your search

+25
View File
@@ -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}" }
}
}