T36: Web Components II - Templates, Slots, Lifecycle & Lit

A real component needs three more things. Templates keep inert markup off-stage until needed. Slots let parents inject content like React children. Lifecycle callbacks are the element's life stages - birth, insertion, attribute change, removal. Once you know all of this, Lit becomes the espresso machine that hides the ceremony.

The