소스 검색

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

Fix Fermi example
Jon Kelley 2 년 전
부모
커밋
641082c8b8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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! {