From e881b86d2e0548412f030988ddf8e9ed2da75e6c Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 21 Sep 2021 17:02:37 -0400 Subject: [PATCH] docs: update readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ff170a40d..f811045d6 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Dioxus is a portable, performant, and ergonomic framework for building cross-platform user experiences in Rust. ```rust -fn App(cx: Context<()>) -> DomTree { +static App: FC<()> = |cx, props| { let mut count = use_state(cx, || 0); cx.render(rsx!( @@ -64,7 +64,6 @@ Dioxus can be used to deliver webapps, desktop apps, static sites, liveview apps If you know React, then you already know Dioxus. - ### Unique features: - Incredible inline documentation. Supports hover and guides for all HTML elements, listeners, and events. - Templates are "constified" at compile time. Nodes that don't change will won't be diffed.