浏览代码

restore readme.rs

ealmloff 1 年之前
父节点
当前提交
017d7e96bf
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      examples/readme.rs

+ 0 - 6
examples/readme.rs

@@ -11,12 +11,6 @@ fn main() {
 fn app(cx: Scope) -> Element {
     let mut count = use_state(cx, || 0);
 
-    use_effect(cx, (), move |()| async {});
-
-    use_effect(cx, (count.get(),), move |(count,)| async move {
-        move || println!("Count unmounted from {}", count)
-    });
-
     cx.render(rsx! {
         h1 { "High-Five counter: {count}" }
         button { onclick: move |_| count += 1, "Up high!" }