dioxus/examples/hello_world.rs

12 lines
185 B
Rust
Raw Normal View History

2021-10-27 18:54:49 +00:00
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(App);
2021-10-27 18:54:49 +00:00
}
fn App((cx, props): ScopeState<()>) -> Element {
2021-10-27 18:54:49 +00:00
cx.render(rsx! (
div { "Hello, world!" }
))
}