Feat: rename recoil to atoms
This commit is contained in:
1 parent
47e896038e
commit
36ea39ae30
29 files changed
+398
-249
No files matched your search
@@ -1,13 +0,0 @@
|
||||
[package]
|
||||
name = "dioxus"
|
||||
version = "0.1.0"
|
||||
authors = ["Jonathan Kelley <jkelleyrtp@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
|
||||
"license" = "MIT/Apache-2.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
dioxus-core = { path = "../core", version = "0.1.0" }
|
||||
dioxus-core-macro = { path = "../core-macro", version = "0.1.0" }
|
||||
dioxus-hooks = { path = "../hooks", version = "0.0.0" }
|
||||
@@ -1,51 +0,0 @@
|
||||
# Dioxus
|
||||
|
||||
This crate provides all the batteries required to build Dioxus apps.
|
||||
|
||||
Included in this crate is:
|
||||
|
||||
- Dioxus core
|
||||
- Essential hooks (use_state, use_ref, use_reducer, etc)
|
||||
- rsx! and html! macros
|
||||
|
||||
You'll still need to pull in a renderer to render the Dioxus VDOM. Any one of:
|
||||
|
||||
- dioxus-web (to run in WASM)
|
||||
- dioxus-ssr (to run on the server or for static sites)
|
||||
- dioxus-webview (to run on the desktop)
|
||||
- dioxus-mobile (to run on iOS/Android)
|
||||
|
||||
Make sure dioxus and its renderer share the same major version; the renderers themselves rely on dioxus.
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
dioxus = "0.2"
|
||||
dioxus-web = "0.2"
|
||||
```
|
||||
|
||||
```rust
|
||||
use dioxus::*;
|
||||
|
||||
fn main() {
|
||||
dioxus_web::start(|ctx| {
|
||||
rsx!{in ctx, div { "Hello world" }}
|
||||
})
|
||||
}
|
||||
```
|
||||
|
||||
Additionally, you'll want to look at other projects for more batteries
|
||||
|
||||
- essential-hooks (use_router, use_storage, use_cache, use_channel)
|
||||
- Recoil.rs or Reducer.rs for state management
|
||||
- 3D renderer (ThreeD), charts (Sciviz), game engine (Bevy)
|
||||
|
||||
Extra resources:
|
||||
|
||||
- The guide is available at:
|
||||
- The crate docs are at:
|
||||
- Video tutorials are at:
|
||||
- Examples are at:
|
||||
- Full clones are at:
|
||||
- Community at: [www.reddit.com/r/dioxus]()
|
||||
|
||||
Happy building!
|
||||
@@ -1,9 +0,0 @@
|
||||
pub mod prelude {
|
||||
pub use dioxus_core::prelude::*;
|
||||
pub use dioxus_core_macro::fc;
|
||||
}
|
||||
|
||||
// use dioxus_core::prelude::FC;
|
||||
|
||||
// Re-export core completely
|
||||
pub use dioxus_core as core;
|
||||
Reference in new issue
Block a user