diff --git a/Cargo.toml b/Cargo.toml
index cd6fed8b1..e1f47ae1e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,9 +6,10 @@ members = [
"packages/web",
"packages/dioxus",
"packages/ssr",
+ "packages/docsite",
+ "packages/recoil",
+ "packages/router",
]
-# "packages/recoil",
-# "packages/docsite",
# "packages/webview",
# "packages/cli",
diff --git a/README.md b/README.md
index 19b7dd6a5..39f81854e 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust.
```rust
-fn Example(ctx: Context<()>) -> VNodes {
+fn Example(ctx: Context<()>) -> VNode {
let (selection, set_selection) = use_state(&ctx, || "..?");
ctx.render(rsx! {
@@ -41,7 +41,7 @@ If you know React, then you already know Dioxus.
Web |
Desktop |
Mobile |
- State Management |
+ State |
Docs |
Tools |
diff --git a/packages/docsite/src/components/app.rs b/packages/core/examples/app.rs
similarity index 100%
rename from packages/docsite/src/components/app.rs
rename to packages/core/examples/app.rs
diff --git a/packages/core/src/virtual_dom.rs b/packages/core/src/virtual_dom.rs
index 5d0d62de8..2a35a341a 100644
--- a/packages/core/src/virtual_dom.rs
+++ b/packages/core/src/virtual_dom.rs
@@ -314,6 +314,10 @@ impl VirtualDom {
Ok(())
}
+
+ pub fn base_scope(&self) -> &Scope {
+ todo!()
+ }
}
// TODO!
@@ -802,6 +806,14 @@ Any function prefixed with "use" should not be called conditionally.
|_| {},
)
}
+
+ fn suspend(
+ &self,
+ f: impl Future