Architecture

Compound component pattern

Coordinate named component parts through shared state and an explicit root contract.

Formal Syntax & Structure

react syntaxreact
<Disclosure><Trigger>Details</Trigger><Panel>Info</Panel></Disclosure>

Working Example

Example Snippetreact
Use independent roots for independent state.
React Reference