浏览代码

examples: fixup asset example

Jonathan Kelley 3 年之前
父节点
当前提交
6e4ed9e351
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      examples/custom_assets.rs

+ 2 - 6
examples/custom_assets.rs

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