mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
examples: fixup asset example
This commit is contained in:
parent
430cde7068
commit
6e4ed9e351
1 changed files with 2 additions and 6 deletions
|
@ -5,14 +5,10 @@ fn main() {
|
|||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let (disabled, set_disabled) = use_state(&cx, || false);
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
"hi"
|
||||
img {
|
||||
src: "examples/../../../assets/logo.png",
|
||||
}
|
||||
"This should show an image:"
|
||||
img { src: "examples/assets/logo.png", }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue