yuniruyuni 388acf3277 docs: allow build core_reference/children example il y a 3 ans
..
README.md 3de776c42a docs: fix the reference code il y a 3 ans
antipatterns.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
basics.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
children.rs 388acf3277 docs: allow build core_reference/children example il y a 3 ans
conditional_rendering.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
controlled_inputs.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
custom_elements.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
empty.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
errorhandling.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
fragments.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
global_css.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
inline_styles.rs 3de776c42a docs: fix the reference code il y a 3 ans
iterators.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
listener.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
memo.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
spreadpattern.rs 3de776c42a docs: fix the reference code il y a 3 ans
suspense.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans
task.rs cafb7df736 docs: remove all usages of static closure syntax and update readme il y a 3 ans

README.md

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!