Static interactivity
This page is built ahead of time and served as a static asset, without invoking the server runtime. Small client scripts add interactivity in the browser.
Two components. Independent state.
Click Increment in either counter. Only that counter changes: each component instance has its own scoped elements and client script.
Independent counter
Count:
Independent counter
Count: