wip: upgrade hooks

This commit is contained in:
Jonathan Kelley committed 2021-12-27 15:03:43 -05:00
1 parent c0e0196a67
commit b3ac2ee3f7
10 files changed
+150 -44

No files matched your search

+21
View File
@@ -32,3 +32,24 @@ or use `cargo-edit` to add it via the CLI:
```shell
$ cargo add dioxus --features desktop
```
## Setting up a hello world
Let's edit the project's `main.rs` and add the skeleton of
```rust
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx!(
div { "hello world!" }
))
}
```
## Making sure things run