|
1 | 1 | # Examples |
2 | 2 |
|
3 | | -Most of these examples are run through webview so you don't need the dioxus cli installed to preview the functionality. Anything labeled `_web` will need to be built with the Dioxus CLI to preview features that only a native bundle can handle. |
| 3 | +Most of these examples are run through webview so you don't need the dioxus cli installed to preview the functionality. |
4 | 4 |
|
5 | | -List of examples: |
| 5 | +These examples are fully-fledged micro apps. They can be ran with the `cargo run --example XYZ` |
6 | 6 |
|
7 | | -| Example | What it does | |
8 | | -| --------------------------------------- | ------------ | |
9 | | -| [The basics](./basics.rs) | this does | |
10 | | -| [fine grained reactivity](./signals.rs) | this does | |
11 | | -| Global State Management | this does | |
12 | | -| Virtual Refs | this does | |
13 | | -| Inline Styles | this does | |
14 | | -| Conditional Rendering | this does | |
15 | | -| Maps/Iterators | this does | |
16 | | -| Render To string | this does | |
17 | | -| Component Children | this does | |
18 | | -| Function Driven children | this does | |
19 | | -| Memoization | this does | |
20 | | -| Borrowed Data | this does | |
21 | | -| Fragments | this does | |
22 | | -| Null/None Components | this does | |
23 | | -| Spread Pattern for props | this does | |
24 | | -| Controlled Inputs | this does | |
25 | | -| Custom Elements | this does | |
26 | | -| Testing And debugging | this does | |
27 | | -| Asynchronous Data | this does | |
28 | | -| Fiber/Scheduled Rendering | this does | |
29 | | -| CSS Compiled Styles | this does | |
| 7 | +| Example | What it does | Status | |
| 8 | +| --------------------------------------------------- | ------------------------------------------- | ------ | |
| 9 | +| [The basics](./basics.rs) | A few basic examples to preview Dioxus | 🛠 | |
| 10 | +| [fine grained reactivity](./signals.rs) | Escape `diffing` by writing values directly | 🛠 | |
| 11 | +| [Global State Management](./statemanagement.rs) | Share state between components | 🛠 | |
| 12 | +| [Virtual Refs]() | Cross-platform imperative elements | 🛠 | |
| 13 | +| [Inline Styles](./inline-styles.rs) | Define styles for elements inline | 🛠 | |
| 14 | +| [Conditional Rendering](./conditional-rendering.rs) | Hide/Show elements using conditionals | ✅ | |
| 15 | + |
| 16 | +These examples are not necessarily meant to be run, but rather serve as a reference for the given functionality. |
| 17 | + |
| 18 | +| Example | What it does | Status | |
| 19 | +| --------------------------------------------------- | ----------------------------------------------- | ------ | |
| 20 | +| [The basics](./basics.rs) | A few basic examples to preview Dioxus | 🛠 | |
| 21 | +| [fine grained reactivity](./signals.rs) | Escape `diffing` by writing values directly | 🛠 | |
| 22 | +| [Global State Management](./statemanagement.rs) | Share state between components | 🛠 | |
| 23 | +| [Virtual Refs]() | Cross-platform imperative elements | 🛠 | |
| 24 | +| [Inline Styles](./inline-styles.rs) | Define styles for elements inline | 🛠 | |
| 25 | +| [Conditional Rendering](./conditional-rendering.rs) | Hide/Show elements using conditionals | ✅ | |
| 26 | +| [Maps/Iterators](./iterators.rs) | Use iterators in the rsx! macro | 🛠 | |
| 27 | +| [Render To string](./tostring.rs) | Render a mounted virtualdom to a string | 🛠 | |
| 28 | +| [Component Children](./children.rs) | Pass children into child components | 🛠 | |
| 29 | +| [Function Driven children]() | Pass functions to make VNodes | 🛠 | |
| 30 | +| [Memoization & Borrowed Data](./memo.rs) | Suppress renders, borrow from parents | ✅ | |
| 31 | +| [Fragments](./fragments.rs) | Support root-less element groups | ✅ | |
| 32 | +| [Null/None Components](./empty.rs) | Return nothing! | 🛠 | |
| 33 | +| [Spread Pattern for props](./spreadpattern.rs) | Manually specify and override props | ✅ | |
| 34 | +| [Controlled Inputs](./controlled-inputs.rs) | this does | 🛠 | |
| 35 | +| [Custom Elements]() | Define custom elements | 🛠 | |
| 36 | +| [Web Components]() | Custom elements to interface with WebComponents | 🛠 | |
| 37 | +| [Testing And debugging]() | this does | 🛠 | |
| 38 | +| [Asynchronous Data]() | Using suspense to wait for data | 🛠 | |
| 39 | +| [Fiber/Scheduled Rendering]() | this does | 🛠 | |
| 40 | +| [CSS Compiled Styles]() | this does | 🛠 | |
| 41 | +| [Anti-patterns](./antipatterns.rs) | A collection of discouraged patterns | ✅ | |
| 42 | +| [Complete rsx reference](./rsx_usage.rs) | A complete reference for all rsx! usage | ✅ | |
| 43 | +| [Event Listeners](./listener.rs) | Attach closures to events on elements | ✅ | |
| 44 | + |
| 45 | +These web-specific examples must be run with `dioxus-cli` using `dioxus develop --example XYZ` |
| 46 | + |
| 47 | +| Example | What it does | |
| 48 | +| ------- | ------------ | |
| 49 | +| asd | this does | |
| 50 | +| asd | this does | |
0 commit comments