Nested composition
A component within a component within a component. Each
<tick-counter> lives inside a
<counter-row>, which lives inside a
<counter-board> — three levels, all light DOM.
- Click a few counters so their counts differ.
-
Click Rename board. That changes only the board's
title and re-renders the root component.
-
The counts stay exactly as you left them. A nested component owns the
DOM it renders for itself; an ancestor re-render patches props down but
never trims the inner subtree.