docs: strong improvmenets, first major section done
This commit is contained in:
1 parent
b9b98dc7a5
commit
54d050cf89
11 files changed
+424
-31
No files matched your search
@@ -2,6 +2,12 @@
|
||||
|
||||
Every user interface you've ever used is just a symphony of tiny widgets working together to abstract over larger complex functions. In Dioxus, we call these tiny widgets "Elements." Using Components, you can easily compose Elements into larger groups to form even larger structures: Apps.
|
||||
|
||||
In this chapter, we'll cover:
|
||||
- Declaring our first Element
|
||||
- Composing Elements together
|
||||
- Element properties
|
||||
|
||||
## Declaring our first Element
|
||||
Because Dioxus is mostly used with HTML/CSS renderers, the default Element "collection" is HTML. Provided the `html` feature is not disabled, we can declare Elements using the `rsx!` macro:
|
||||
|
||||
```rust
|
||||
|
||||
Reference in new issue
Block a user