Forráskód Böngészése

Merge pull request #743 from Demonthos/fix-femri-example

Fix Fermi example
Jon Kelley 2 éve
szülő
commit
641082c8b8
1 módosított fájl, 1 hozzáadás és 0 törlés
  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! {