简介
Vercel 官方推荐的 React 组件组合模式,解决 boolean prop 泛滥问题,提供 compound components、state lifting 等可扩展架构方案,含 React 19 新 API 指引。
原始描述
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
其他来源收录
同一技能在不同目录的原始页面: