Choose a behavior to explore. Each example lives next to its explanation and includes the running component, copyable source and CSS.
Local stateUpdate and reset a counter without losing its local variables.Changing propsUpdate a label and step without resetting the child counter.Bindings and listsEdit a draft, add a row and toggle its checkbox.Delegated confirmationReturn a decision to the calling workflow.Custom elementsShare a signal between JSX and a shadow-root component.Error recoveryFail a request and reset its error boundary.Execution traceInspect async cancellation and generator cleanup.Route matchingObserve matched parameters and a fallback route.Lazy revivalActivate a server-rendered counter in place.Astro island componentTry the booking control and inspect the Astro integration recipe.