Find a DOM recipe

Select, update, replace, animate, and focus application-owned elements

Wire elements to scope

ProblemRecipe
Expose an element without queryingSelect elements through scope
Change text and classesUpdate the DOM
Replace a nodeReplace DOM
Replace a region with server markupSwap server HTML

Build common interactions

ProblemRecipe
Edit one record in placeBuild inline editing
Remove a confirmed rowDelete a row
Update before a request completesUse an optimistic update
Load a server-rendered dialogOpen a server dialog

Keep updates usable

ProblemRecipe
Announce and focus request resultsMake requests accessible
Explain an empty collectionDesign an empty state
Keep focus after replacementPreserve focus after swaps