Jonathan Kelley f1cff845ce wip: examples il y a 3 ans
..
_examples 4a72b3140b feat: amazingly awesome error handling il y a 4 ans
assets 63bbc38f3f wip: edit some css il y a 4 ans
examples 4a72b3140b feat: amazingly awesome error handling il y a 4 ans
reference 9971ff215d polish: change in cx to cx il y a 3 ans
README.md ff0a3d1c83 wip: lots of changes to diffing il y a 4 ans
async.rs 1cd5e69712 wip: more work on scheduler il y a 3 ans
basic.rs 7dfe89c958 feat: wire up event delegator for webview il y a 4 ans
borrowed.rs f2334c17be wip: bottom up dropping il y a 3 ans
calculator.rs f1cff845ce wip: examples il y a 3 ans
coroutine.rs e5c88fe3a4 feat: make hooks free-functions il y a 4 ans
file_explorer.rs f1cff845ce wip: examples il y a 3 ans
framework_benchmark.rs 4a72b3140b feat: amazingly awesome error handling il y a 4 ans
hydration.rs 8b0eb87c72 wip: refactor il y a 3 ans
manually.rs caf772cf24 wip: docs, html! macro, more il y a 4 ans
model.rs f1cff845ce wip: examples il y a 3 ans
readme.rs 56e7eb83a9 wip: more examples il y a 4 ans
reducer.rs f1cff845ce wip: examples il y a 3 ans
rsx_usage.rs 9971ff215d polish: change in cx to cx il y a 3 ans
showcase.rs 9971ff215d polish: change in cx to cx il y a 3 ans
slideshow.rs f1cff845ce wip: examples il y a 3 ans
ssr.rs f41cff571f wip: working on async diff il y a 3 ans
tailwind.rs 49856ccd68 wip: making progress on diffing and hydration il y a 4 ans
testbed.rs dfaf5adee1 Feat: solve some issues regarding listeners il y a 4 ans
todomvc.rs 49856ccd68 wip: making progress on diffing and hydration il y a 4 ans
web_tick.rs 8b0eb87c72 wip: refactor il y a 3 ans
webview.rs f1cff845ce wip: examples il y a 3 ans
webview_web.rs 49856ccd68 wip: making progress on diffing and hydration il y a 4 ans

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