Control flow in depth
Show, Switch, For, Index, Dynamic, Portal, Fragment and lazy components, what each one rebuilds, and how fallbacks behave.
After this page you can choose the right control-flow component for conditions, lists, dynamic tags and out-of-tree content, and predict which DOM and which component instances are created, kept or disposed on every update.
Control-flow components are ordinary functions. They return an accessor that the DOM runtime inserts, and they decide which owner (and so which DOM, effects and cleanups) exists at any time. Import them from @shadow-js/web.