Explorar o código

fix fermi example

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
4621272f4c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      examples/fermi.rs

+ 1 - 0
examples/fermi.rs

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