mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-24 19:43:10 +00:00
388acf3277
It needs lifetime parameters. |
||
---|---|---|
.. | ||
antipatterns.rs | ||
basics.rs | ||
children.rs | ||
conditional_rendering.rs | ||
controlled_inputs.rs | ||
custom_elements.rs | ||
empty.rs | ||
errorhandling.rs | ||
fragments.rs | ||
global_css.rs | ||
inline_styles.rs | ||
iterators.rs | ||
listener.rs | ||
memo.rs | ||
README.md | ||
spreadpattern.rs | ||
suspense.rs | ||
task.rs |
Reference Guide
This folder holds a bunch of useful reference code. However, none of the code is meant to be executed (nothing special will happen).
Reference: | What it does |
---|---|
Basics | How to render a simple app |
Empty | Components can return None |
Children | Components can have children |
Suspense | Suspense can be achieved with use_suspense |
Conditional Rendering | Elements can be hidden conditionally |
Controlled Inputs | Inputs are "controlled" similar to React |
Fragments | Components can return multiple elements without a root |
Inline Styles | Styles can be inlined as element attributes |
Spread Pattern for Props | Props can be spread into component calls |
Iterators | Lists of elements can be made from iterators |
Listener | State can be updated from event listeners |
Memo | Memoization is controlled via PartialEq |
Custom Elements | Define custom elements |
Anti-patterns | What not to do! |