dioxus/examples/hello_world.rs

11 lines
187 B
Rust

use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(App, |c| c);
}
fn App((cx, props): Scope<()>) -> Element {
cx.render(rsx! (
div { "Hello, world!" }
))
}