Ver código fonte

docs: update readme

Jonathan Kelley 3 anos atrás
pai
commit
198d883547
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      README.md

+ 2 - 3
README.md

@@ -40,10 +40,10 @@
 
 <br/>
 
-Leverage React-like patterns to build beautiful, portable, terminal user interfaces with Dioxus and Rust.
+Leverage React-like patterns, CSS, HTML, and Rust to build beautiful, portable, terminal user interfaces with Dioxus.
 
 ```rust
-static App: FC<()> = |cx| {
+fn app(cx: Scope) -> Element {
     cx.render(rsx!{
         div {
             width: "100%",
@@ -51,7 +51,6 @@ static App: FC<()> = |cx| {
             background_color: "red",
             justify_content: "center",
             align_items: "center",
-
             "Hello world!"
         }
     })