Browse Source

fix fermi example

Evan Almloff 2 years ago
parent
commit
4621272f4c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/fermi.rs

+ 1 - 0
examples/fermi.rs

@@ -10,6 +10,7 @@ fn main() {
 static NAME: Atom<String> = |_| "world".to_string();
 
 fn app(cx: Scope) -> Element {
+    use_init_atom_root(&cx);
     let name = use_read(cx, NAME);
 
     cx.render(rsx! {