Files
osui/examples/hello_world.rs
T
2026-01-30 19:02:26 +01:00

20 lines
325 B
Rust

use std::sync::Arc;
use osui::prelude::*;
pub fn main() {
let engine = Console::new();
engine.run(App).expect("Failed to run engine");
}
struct App;
impl ComponentImpl for App {
fn call(&self, cx: &Arc<Context>) -> View {
rsx! {
"Hello, world!"
}
.view(cx.clone())
}
}