What are compound components and where are they used?
Answer
•A set of related components (Tabs, Menu).
•Shared state stored in parent component.
•Children read state via context.
•Provides convenient API and composition.
•Requires careful typing and docs.
Was this answer helpful?