dioxus/examples/custom_assets.rs

15 lines
253 B
Rust
Raw Normal View History

2022-01-27 21:36:17 +00:00
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
2022-01-27 21:37:09 +00:00
"This should show an image:"
img { src: "examples/assets/logo.png", }
2022-01-27 21:36:17 +00:00
}
})
}