mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
c113d96bbe
* fix: Update logo and custom assets example * update old logos
16 lines
285 B
Rust
16 lines
285 B
Rust
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus_desktop::launch(app);
|
|
}
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
cx.render(rsx! {
|
|
div {
|
|
p {
|
|
"This should show an image:"
|
|
}
|
|
img { src: "examples/assets/logo.png" }
|
|
}
|
|
})
|
|
}
|