Merge pull request #8 from jkelleyrtp/jk/diff_machine_own_vdom

Doc: change up example a bit
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2021-06-10 11:45:55 -04:00
commit e45b6e0aa2
1 file changed
+1 -1
+1 -1
View File
@@ -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}" }