Menu

📰
0

Reddit - Please wait for verification

The Rust Programming Language·/u/Chaoses_Ib·3 days ago
#UKGTpiOr
Reading 0:00
15s threshold

Example: ``rust use windows_reactor::*; fn main() -> Result { App::new().title("sample").render(app) } fn app(cx: &mut RenderCx) -> impl Into { let (count, set_count) = cx.use_state(0); let click = move || set_count.call(count + 1); vstack(( button("Click").on_click(click), text_block(format!("count = {count}")) .font_size(18.0) .bold(), )) } `` More samples can be found at windows-rs/crates/samples/reactor. submitted by /u/Chaoses_Ib [link] [comments]

Read More