dioxus/examples/custom_assets.rs
2022-01-27 16:37:09 -05:00

14 lines
253 B
Rust

use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
"This should show an image:"
img { src: "examples/assets/logo.png", }
}
})
}