dioxus/examples/core_reference
2022-01-03 13:26:15 -05:00
..
antipatterns.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
basics.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
children.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
conditional_rendering.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
controlled_inputs.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
custom_elements.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
empty.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
errorhandling.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
fragments.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
global_css.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
inline_styles.rs docs: fix the reference code 2022-01-03 13:26:15 -05:00
iterators.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
listener.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
memo.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
README.md docs: fix the reference code 2022-01-03 13:26:15 -05:00
spreadpattern.rs docs: fix the reference code 2022-01-03 13:26:15 -05:00
suspense.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
task.rs docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00

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!