wip: docs
This commit is contained in:
1 parent
97e014fb46
commit
3ddf395772
3 files changed
+22
-19
No files matched your search
+12
-12
@@ -40,34 +40,34 @@ mobile = ["dioxus-mobile"]
|
|||||||
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
futures-util = "0.3.16"
|
futures-util = "0.3.17"
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
num-format = "0.4.0"
|
num-format = "0.4.0"
|
||||||
separator = "0.4.1"
|
separator = "0.4.1"
|
||||||
serde = { version = "1.0.130", features = ["derive"] }
|
serde = { version = "1.0.131", features = ["derive"] }
|
||||||
im-rc = "15.0.0"
|
im-rc = "15.0.0"
|
||||||
fxhash = "0.2.1"
|
fxhash = "0.2.1"
|
||||||
anyhow = "1.0.42"
|
anyhow = "1.0.51"
|
||||||
# reqwest = "0.11.4"
|
# reqwest = "0.11.4"
|
||||||
serde_json = "1.0.68"
|
serde_json = "1.0.73"
|
||||||
simple_logger = "1.13.0"
|
simple_logger = "1.16.0"
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||||||
argh = "0.1.5"
|
argh = "0.1.7"
|
||||||
env_logger = "0.9.0"
|
env_logger = "0.9.0"
|
||||||
tokio = { version = "1.12.0", features = ["full"] }
|
tokio = { version = "1.14.0", features = ["full"] }
|
||||||
rand = { version = "0.8.4", features = ["small_rng"] }
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
||||||
gloo-timers = "0.2.1"
|
gloo-timers = "0.2.2"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
||||||
gloo-timers = "0.2.1"
|
gloo-timers = "0.2.2"
|
||||||
wasm-logger = "0.2.0"
|
wasm-logger = "0.2.0"
|
||||||
console_error_panic_hook = "0.1.6"
|
console_error_panic_hook = "0.1.7"
|
||||||
rand = { version = "0.8.4", features = ["small_rng"] }
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
||||||
wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
|
wasm-bindgen = { version = "0.2.78", features = ["enable-interning"] }
|
||||||
|
|
||||||
[dev-dependencies.getrandom]
|
[dev-dependencies.getrandom]
|
||||||
version = "0.2"
|
version = "0.2.3"
|
||||||
features = ["js"]
|
features = ["js"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,8 @@
|
|||||||
Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust.
|
Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn App(cx: Scope, props: &()) -> Element {
|
fn App(cx: Scope<()>) -> Element {
|
||||||
let mut count = use_state(cx, || 0);
|
let mut count = use_state(&cx, || 0);
|
||||||
|
|
||||||
cx.render(rsx!(
|
cx.render(rsx!(
|
||||||
h1 { "High-Five counter: {count}" }
|
h1 { "High-Five counter: {count}" }
|
||||||
@@ -87,9 +87,11 @@ If you know React, then you already know Dioxus.
|
|||||||
|
|
||||||
## Examples:
|
## Examples:
|
||||||
|
|
||||||
| File Navigator (Desktop) | Bluetooth scanner (Desktop) | TodoMVC (All platforms) | Widget Gallery |
|
| File Navigator (Desktop) | Bluetooth scanner (Desktop) | TodoMVC (All platforms) | Widget Gallery |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
||||||
| [](https://github.com/DioxusLabs/file-explorer-example) |  | [](https://github.com/dioxusLabs/todomvc/) |  |
|
| [](https://github.com/DioxusLabs/file-explorer-example) | [](https://github.com/DioxusLabs/file-explorer-example) | [](https://github.com/DioxusLabs/file-explorer-example) | [](https://github.com/dioxusLabs/todomvc/) | [](https://github.com/DioxusLabs/file-explorer-example) |
|
||||||
|
|
||||||
|
<!-- |  | [](https://github.com/dioxusLabs/todomvc/) |  | -->
|
||||||
|
|
||||||
|
|
||||||
See the awesome-dioxus page for a curated list of content in the Dioxus Ecosystem.
|
See the awesome-dioxus page for a curated list of content in the Dioxus Ecosystem.
|
||||||
@@ -159,6 +161,7 @@ Dioxus is heavily inspired by React, but we want your transition to feel like an
|
|||||||
| Re-hydration | ✅ | ✅ | Pre-render to HTML to speed up first contentful paint |
|
| Re-hydration | ✅ | ✅ | Pre-render to HTML to speed up first contentful paint |
|
||||||
| Jank-Free Rendering | ✅ | ✅ | Large diffs are segmented across frames for silky-smooth transitions |
|
| Jank-Free Rendering | ✅ | ✅ | Large diffs are segmented across frames for silky-smooth transitions |
|
||||||
| Effects | ✅ | ✅ | Run effects after a component has been committed to render |
|
| Effects | ✅ | ✅ | Run effects after a component has been committed to render |
|
||||||
|
| Portals | 🛠 | ✅ | Render nodes outside of the traditional tree structure |
|
||||||
| Cooperative Scheduling | 🛠 | ✅ | Prioritize important events over non-important events |
|
| Cooperative Scheduling | 🛠 | ✅ | Prioritize important events over non-important events |
|
||||||
| Server Components | 🛠 | ✅ | Hybrid components for SPA and Server |
|
| Server Components | 🛠 | ✅ | Hybrid components for SPA and Server |
|
||||||
| Bundle Splitting | 👀 | ✅ | Efficiently and asynchronously load the app |
|
| Bundle Splitting | 👀 | ✅ | Efficiently and asynchronously load the app |
|
||||||
@@ -185,5 +188,5 @@ This project is licensed under the [MIT license].
|
|||||||
### Contribution
|
### Contribution
|
||||||
|
|
||||||
Unless you explicitly state otherwise, any contribution intentionally submitted
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
||||||
for inclusion in Pipette by you, shall be licensed as MIT, without any additional
|
for inclusion in Dioxus by you, shall be licensed as MIT, without any additional
|
||||||
terms or conditions.
|
terms or conditions.
|
||||||
@@ -8,4 +8,4 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dioxus-core = { path = "../../packages/core", version = "0.1.3" }
|
dioxus-core = { path = "../../packages/core", version = "0.1.3" }
|
||||||
futures = "0.3.18"
|
futures = "0.3"
|
||||||
Reference in new issue
Block a user