mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
Merge pull request #743 from Demonthos/fix-femri-example
Fix Fermi example
This commit is contained in:
commit
641082c8b8
1 changed files with 1 additions and 0 deletions
|
@ -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! {
|
||||
|
|
Loading…
Reference in a new issue