Explorar o código

Merge pull request #8 from jkelleyrtp/jk/diff_machine_own_vdom

Doc: change up example a bit
Jonathan Kelley %!s(int64=4) %!d(string=hai) anos
pai
achega
e45b6e0aa2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -9,7 +9,7 @@ Dioxus is a portable, performant, and ergonomic framework for building cross-pla
 
 ```rust
 fn Example(ctx: Context<()>) -> VNodes {
-    let (selection, set_selection) = use_state(&ctx, move || "..?");
+    let (selection, set_selection) = use_state(&ctx, || "..?");
 
     ctx.render(rsx! {
         h1 { "Hello, {selection}" }