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.