Jonathan Kelley b56ea6c9a9 wip: work on scheduler, async, coroutines, and merge scope into context há 3 anos atrás
..
assets 16dbf4a6f8 wip: book documentation há 3 anos atrás
core 1e6e5e611b wip: move examples around há 3 anos atrás
core_reference 1e6e5e611b wip: move examples around há 3 anos atrás
desktop 1e6e5e611b wip: move examples around há 3 anos atrás
ssr 1e6e5e611b wip: move examples around há 3 anos atrás
web 1e6e5e611b wip: move examples around há 3 anos atrás
README.md 5747e00b27 Various typos/grammar/rewording há 3 anos atrás
async.rs b56ea6c9a9 wip: work on scheduler, async, coroutines, and merge scope into context há 3 anos atrás
borrowed.rs ba9e1dbb8f fix: messed up how lifetimes worked, need to render once per component há 3 anos atrás
calculator.rs 1e6e5e611b wip: move examples around há 3 anos atrás
coroutine.rs b56ea6c9a9 wip: work on scheduler, async, coroutines, and merge scope into context há 3 anos atrás
crm.rs 1e6e5e611b wip: move examples around há 3 anos atrás
file_explorer.rs 9726a065b0 feat: massage lifetimes há 3 anos atrás
framework_benchmark.rs 1e6e5e611b wip: move examples around há 3 anos atrás
hello_world.rs ba9e1dbb8f fix: messed up how lifetimes worked, need to render once per component há 3 anos atrás
hydration.rs 5747e00b27 Various typos/grammar/rewording há 3 anos atrás
manual_edits.rs 9726a065b0 feat: massage lifetimes há 3 anos atrás
pattern_model.rs 1e6e5e611b wip: move examples around há 3 anos atrás
pattern_reducer.rs 5747e00b27 Various typos/grammar/rewording há 3 anos atrás
readme.rs 9726a065b0 feat: massage lifetimes há 3 anos atrás
router.rs 1e6e5e611b wip: move examples around há 3 anos atrás
rsx_usage.rs 1e6e5e611b wip: move examples around há 3 anos atrás
ssr.rs 0e9d5fc530 wip: move everything over to a stack dst há 3 anos atrás
tailwind.rs 1e6e5e611b wip: move examples around há 3 anos atrás
todomvc.rs 1e6e5e611b wip: move examples around há 3 anos atrás
weather_app.rs 1e6e5e611b wip: move examples around há 3 anos atrás
web_tick.rs ba9e1dbb8f fix: messed up how lifetimes worked, need to render once per component há 3 anos atrás
webview_web.rs 1e6e5e611b wip: move examples around há 3 anos atrás

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