Files
dioxus/packages/autofmt/tests/wrong/oneline-expand.rsx
T

18 lines
424 B
R

fn main() {
rsx! {
button {
id: "start_stop",
onclick: move |_| {
timer
.with_mut(|t| {
t.started_at = if t.started_at.is_none() {
Some(Instant::now())
} else {
None
};
})
}
}
}
}