dioxus/examples/hello_world.rs

11 lines
185 B
Rust

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