Doc: change up example a bit
This commit is contained in:
1 parent
517d7f1495
commit
a03497e0d8
1 file changed
+1
-1
@@ -9,7 +9,7 @@ Dioxus is a portable, performant, and ergonomic framework for building cross-pla
|
|||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn Example(ctx: Context<()>) -> VNodes {
|
fn Example(ctx: Context<()>) -> VNodes {
|
||||||
let (selection, set_selection) = use_state(&ctx, move || "..?");
|
let (selection, set_selection) = use_state(&ctx, || "..?");
|
||||||
|
|
||||||
ctx.render(rsx! {
|
ctx.render(rsx! {
|
||||||
h1 { "Hello, {selection}" }
|
h1 { "Hello, {selection}" }
|
||||||
|
|||||||
Reference in new issue
Block a user