docs: update readme
This commit is contained in:
1 parent
90d8995645
commit
198d883547
1 file changed
+2
-3
@@ -40,10 +40,10 @@
|
|||||||
|
|
||||||
<br/>
|
<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
|
```rust
|
||||||
static App: FC<()> = |cx| {
|
fn app(cx: Scope) -> Element {
|
||||||
cx.render(rsx!{
|
cx.render(rsx!{
|
||||||
div {
|
div {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
@@ -51,7 +51,6 @@ static App: FC<()> = |cx| {
|
|||||||
background_color: "red",
|
background_color: "red",
|
||||||
justify_content: "center",
|
justify_content: "center",
|
||||||
align_items: "center",
|
align_items: "center",
|
||||||
|
|
||||||
"Hello world!"
|
"Hello world!"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user