wip: docs
This commit is contained in:
parent
97e014fb46
commit
3ddf395772
24
Cargo.toml
24
Cargo.toml
|
@ -40,34 +40,34 @@ mobile = ["dioxus-mobile"]
|
|||
|
||||
|
||||
[dev-dependencies]
|
||||
futures-util = "0.3.16"
|
||||
futures-util = "0.3.17"
|
||||
log = "0.4.14"
|
||||
num-format = "0.4.0"
|
||||
separator = "0.4.1"
|
||||
serde = { version = "1.0.130", features = ["derive"] }
|
||||
serde = { version = "1.0.131", features = ["derive"] }
|
||||
im-rc = "15.0.0"
|
||||
fxhash = "0.2.1"
|
||||
anyhow = "1.0.42"
|
||||
anyhow = "1.0.51"
|
||||
# reqwest = "0.11.4"
|
||||
serde_json = "1.0.68"
|
||||
simple_logger = "1.13.0"
|
||||
serde_json = "1.0.73"
|
||||
simple_logger = "1.16.0"
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||||
argh = "0.1.5"
|
||||
argh = "0.1.7"
|
||||
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"] }
|
||||
gloo-timers = "0.2.1"
|
||||
gloo-timers = "0.2.2"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
||||
gloo-timers = "0.2.1"
|
||||
gloo-timers = "0.2.2"
|
||||
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"] }
|
||||
wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
|
||||
wasm-bindgen = { version = "0.2.78", features = ["enable-interning"] }
|
||||
|
||||
[dev-dependencies.getrandom]
|
||||
version = "0.2"
|
||||
version = "0.2.3"
|
||||
features = ["js"]
|
||||
|
||||
|
||||
|
|
15
README.md
15
README.md
|
@ -49,8 +49,8 @@
|
|||
Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust.
|
||||
|
||||
```rust
|
||||
fn App(cx: Scope, props: &()) -> Element {
|
||||
let mut count = use_state(cx, || 0);
|
||||
fn App(cx: Scope<()>) -> Element {
|
||||
let mut count = use_state(&cx, || 0);
|
||||
|
||||
cx.render(rsx!(
|
||||
h1 { "High-Five counter: {count}" }
|
||||
|
@ -87,9 +87,11 @@ If you know React, then you already know Dioxus.
|
|||
|
||||
## Examples:
|
||||
|
||||
| File Navigator (Desktop) | Bluetooth scanner (Desktop) | TodoMVC (All platforms) | Widget Gallery |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
|
||||
| [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | [![asd](https://github.com/DioxusLabs/todomvc/blob/master/example.png)](https://github.com/dioxusLabs/todomvc/) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) |
|
||||
| File Navigator (Desktop) | Bluetooth scanner (Desktop) | TodoMVC (All platforms) | Widget Gallery |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
||||
| [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | [![asd](https://github.com/DioxusLabs/todomvc/raw/master/example.png)](https://github.com/dioxusLabs/todomvc/) | [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) |
|
||||
|
||||
<!-- | ![asd](https://github.com/DioxusLabs/todomvc/blob/master/example.png) | [![asd](https://github.com/DioxusLabs/todomvc/blob/master/example.png)](https://github.com/dioxusLabs/todomvc/) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | -->
|
||||
|
||||
|
||||
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 |
|
||||
| Jank-Free Rendering | ✅ | ✅ | Large diffs are segmented across frames for silky-smooth transitions |
|
||||
| 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 |
|
||||
| Server Components | 🛠 | ✅ | Hybrid components for SPA and Server |
|
||||
| Bundle Splitting | 👀 | ✅ | Efficiently and asynchronously load the app |
|
||||
|
@ -185,5 +188,5 @@ This project is licensed under the [MIT license].
|
|||
### Contribution
|
||||
|
||||
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.
|
||||
|
|
|
@ -8,4 +8,4 @@ edition = "2018"
|
|||
|
||||
[dependencies]
|
||||
dioxus-core = { path = "../../packages/core", version = "0.1.3" }
|
||||
futures = "0.3.18"
|
||||
futures = "0.3"
|
||||
|
|
Loading…
Reference in New Issue