Search
组件是前端工程的基本复用单元。设计良好的组件应当单一职责、接口清晰、易于测试。
interface Props { value: string; onChange: (next: string) => void; disabled?: boolean; }
每个通用组件都应配套: