Jonathan Kelley a85b8c4b6b wip: apply formatting 4 năm trước cách đây
..
_examples a85b8c4b6b wip: apply formatting 4 năm trước cách đây
assets 63bbc38f3f wip: edit some css 4 năm trước cách đây
examples 98a09339fd wip: move some examples around 4 năm trước cách đây
reference ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
README.md ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
async.rs 9abb0470b7 feat: static node infrastructure and ssr changes 4 năm trước cách đây
calculator.rs ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
doggo.rs 975fa566f9 wip: more refactor for async 4 năm trước cách đây
framework_benchmark.rs a85b8c4b6b wip: apply formatting 4 năm trước cách đây
manually.rs ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
model.rs ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
readme.rs 56e7eb83a9 wip: more examples 4 năm trước cách đây
reducer.rs 975fa566f9 wip: more refactor for async 4 năm trước cách đây
rsx_usage.rs a85b8c4b6b wip: apply formatting 4 năm trước cách đây
showcase.rs ff0a3d1c83 wip: lots of changes to diffing 4 năm trước cách đây
slideshow.rs eb82051000 examples: webview and async 4 năm trước cách đây
ssr.rs 56e7eb83a9 wip: more examples 4 năm trước cách đây
testbed.rs 68ed1c04e7 wip: ....sigh..... so the diffing algorithm is robust 4 năm trước cách đây
webview.rs 99d94b69ab feat: move webview to wry 4 năm trước cách đây

README.md

Examples

Most of these examples are run through webview so you don't need the dioxus cli installed to preview the functionality.

These examples are fully-fledged micro apps. They can be ran with the cargo run --example XYZ

Example What it does Status
The basics A few basic examples to preview Dioxus 🛠
fine grained reactivity Escape diffing by writing values directly 🛠
Global State Management Share state between components 🛠
[Virtual Refs]() Cross-platform imperative elements 🛠
Inline Styles Define styles for elements inline 🛠
Conditional Rendering Hide/Show elements using conditionals

These examples are not necessarily meant to be run, but rather serve as a reference for the given functionality.

Example What it does Status
The basics A few basic examples to preview Dioxus 🛠
fine grained reactivity Escape diffing by writing values directly 🛠
Global State Management Share state between components 🛠
[Virtual Refs]() Cross-platform imperative elements 🛠
Inline Styles Define styles for elements inline 🛠
Conditional Rendering Hide/Show elements using conditionals
Maps/Iterators Use iterators in the rsx! macro
Render To string Render a mounted virtualdom to a string 🛠
Component Children Pass children into child components 🛠
[Function Driven children]() Pass functions to make VNodes 🛠
Memoization & Borrowed Data Suppress renders, borrow from parents
Fragments Support root-less element groups
Null/None Components Return nothing! 🛠
Spread Pattern for props Manually specify and override props
Controlled Inputs this does 🛠
[Custom Elements]() Define custom elements 🛠
[Web Components]() Custom elements to interface with WebComponents 🛠
[Testing And debugging]() this does 🛠
[Asynchronous Data]() Using suspense to wait for data 🛠
[Fiber/Scheduled Rendering]() this does 🛠
[CSS Compiled Styles]() this does 🛠
Anti-patterns A collection of discouraged patterns
Complete rsx reference A complete reference for all rsx! usage
Event Listeners Attach closures to events on elements

These web-specific examples must be run with dioxus-cli using dioxus develop --example XYZ

Example What it does
asd this does
asd this does