examples: fixup asset example

This commit is contained in:
Jonathan Kelley 2022-01-27 16:37:09 -05:00
parent 430cde7068
commit 6e4ed9e351

View file

@ -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", }
}
})
}