From 8c541f66d5f7ef2286f2cdf9b0496a9c404471f9 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Thu, 1 Apr 2021 21:44:18 -0400 Subject: [PATCH] wip: todos --- README.md | 9 +- notes/CHANGELOG.md | 28 +++--- packages/core-macro/src/rsxt.rs | 91 +++++++++---------- packages/core/src/events.rs | 25 ++++- packages/web/Cargo.toml | 15 ++- packages/web/examples/rsxt.rs | 6 +- .../web/examples/todomvc/filtertoggles.rs | 4 +- packages/web/examples/todomvc/main.rs | 7 +- packages/web/examples/todomvc/recoil.rs | 14 +++ packages/web/examples/todomvc/state.rs | 38 ++++++-- packages/web/examples/todomvc/todoitem.rs | 17 +--- packages/web/examples/todomvc/todolist.rs | 22 ++--- packages/web/src/interpreter.rs | 89 +++++++++++++++++- packages/web/src/lib.rs | 1 + 14 files changed, 257 insertions(+), 109 deletions(-) diff --git a/README.md b/README.md index cbbcd6e64..5167c846e 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,10 @@ Dioxus can be used to deliver webapps, desktop apps, static pages, liveview apps ### **Things you'll love ❤️:** - Ergonomic design - Minimal boilerplate -- Simple build, test, and deploy +- Simple build, test, and deploy - Support for html! and rsx! templating - SSR, WASM, desktop, and mobile support +- Powerful and simple integrated state management - Rust! (enums, static types, modules, efficiency) @@ -47,10 +48,6 @@ Dioxus can be used to deliver webapps, desktop apps, static pages, liveview apps - - - - ## Explore - [**HTML Templates**: Drop in existing HTML5 templates with html! macro](docs/guides/00-index.md) - [**RSX Templates**: Clean component design with rsx! macro](docs/guides/00-index.md) @@ -81,7 +78,7 @@ Liveview is an architecture for building web applications where the final page i In other frameworks, the DOM will be updated after events from the page are sent to the server and new html is generated. The html is then sent back to the page over websockets (ie html over websockets). -In Dioxus, the user's bundle will link individual components on the page to the Liveview server. This ensures local events propogate through the page virtual dom if the server is not needed, keeping interactive latency low. This ensures the server load stays low, enablinmg a single server to handle tens of thousands of simultaneous clients. +In Dioxus, the user's bundle will link individual components on the page to the Liveview server. This ensures local events propogate through the page virtual dom if the server is not needed, keeping interactive latency low. This ensures the server load stays low, enabling a single server to handle tens of thousands of simultaneous clients.