Files
osui/examples/hello_world.rs
T
2026-01-28 10:27:18 +01:00

16 lines
220 B
Rust

use std::sync::Arc;
use osui::prelude::*;
pub fn main() {
let console = Console::new();
console.run(app);
}
fn app(cx: &Arc<Context>) -> View {
rsx! {
"Hello, world!"
}
.view(cx.clone())
}