feat: move webview to wry

This commit is contained in:
Jonathan Kelley committed 2021-07-08 12:01:31 -04:00
1 parent 2547da36a0
commit 99d94b69ab
11 files changed
+419 -96

No files matched your search

+5 -5
View File
@@ -8,13 +8,13 @@
Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust.
```rust
fn Example(cx: Context<()>) -> VNode {
let name = use_state(cx, || "..?");
fn App(cx: Context<()>) -> VNode {
let mut count = use_state(cx, || 0);
cx.render(rsx! {
h1 { "Hello, {name}" }
button { "?", onclick: move |_| name.set("world!")}
button { "?", onclick: move |_| name.set("Dioxus 🎉")}
h1 { "Hi-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }
button { onclick: move |_| count -= 1, "Down low!" }
})
};
```