Renderers are now packages, not features. (#387)

* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-07-09 15:15:20 -04:00
1 parent c97ca7dff6
commit d9546d9504
181 files changed
+487 -1463

No files matched your search

+6 -6
View File
@@ -33,11 +33,11 @@ use wry::webview::WebViewBuilder;
///
/// This function will start a multithreaded Tokio runtime as well the WebView event loop.
///
/// ```rust
/// ```rust, ignore
/// use dioxus::prelude::*;
///
/// fn main() {
/// dioxus::desktop::launch(app);
/// dioxus_desktop::launch(app);
/// }
///
/// fn app(cx: Scope) -> Element {
@@ -56,11 +56,11 @@ pub fn launch(root: Component) {
///
/// You can configure the WebView window with a configuration closure
///
/// ```rust
/// ```rust, ignore
/// use dioxus::prelude::*;
///
/// fn main() {
/// dioxus::desktop::launch_cfg(app, |c| c.with_window(|w| w.with_title("My App")));
/// dioxus_desktop::launch_cfg(app, |c| c.with_window(|w| w.with_title("My App")));
/// }
///
/// fn app(cx: Scope) -> Element {
@@ -82,11 +82,11 @@ pub fn launch_cfg(
///
/// You can configure the WebView window with a configuration closure
///
/// ```rust
/// ```rust, ignore
/// use dioxus::prelude::*;
///
/// fn main() {
/// dioxus::desktop::launch_cfg(app, AppProps { name: "asd" }, |c| c);
/// dioxus_desktop::launch_cfg(app, AppProps { name: "asd" }, |c| c);
/// }
///
/// struct AppProps {