Update more docs

This commit is contained in:
Jonathan Kelley committed 2023-07-14 13:58:49 -07:00
1 parent 16763c065b
commit df23c3c651
13 files changed
+26 -26

No files matched your search

@@ -21,7 +21,7 @@ fn runs_in_browser() {
Then, when you run
```console
dioxus test --chrome
dx test --chrome
```
Dioxus will build and test your code using the Chrome browser as a harness.
@@ -18,7 +18,7 @@ Hot reloading is automatically enabled when using the web renderer on debug buil
1. Run:
```bash
dioxus serve --hot-reload
dx serve --hot-reload
```
2. Change some code within a rsx or render macro
+1 -1
View File
@@ -59,5 +59,5 @@ Edit your `main.rs`:
And to serve our app:
```bash
dioxus serve
dx serve
```
@@ -18,7 +18,7 @@ dioxus = { version = "*", features = ["hot-reload"] }
1. Execute:
```
dioxus serve --hot-reload
dx serve --hot-reload
```
2. alterar algum código dentro de uma macro `rsx`
@@ -18,7 +18,7 @@ dioxus = { version = "*", features = ["web", "hot_reload"] }
1. run:
```
dioxus serve --hot-reload
dx serve --hot-reload
```
2. alterar algum código dentro de uma macro rsx
+3 -3
View File
@@ -13,10 +13,10 @@ $ cargo new --bin demo
$ cd demo
```
Add Dioxus with the `desktop` feature:
Add Dioxus-desktop:
```shell
$ cargo add dioxus --features desktop
$ cargo add dioxus_desktop
```
Edit your `main.rs`:
@@ -26,7 +26,7 @@ Edit your `main.rs`:
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
+1 -1
View File
@@ -60,7 +60,7 @@ fn app(cx: Scope) -> Element {
Our project is now setup! To make sure everything is running correctly, in the root of your project run:
```
dioxus serve --platform web
dx serve --platform web
```
Then head to [http://localhost:8080](http://localhost:8080) in your browser, and you should see ``Hello, wasm!`` on your screen.