更可靠的 React 组件:合理的封装

原文摘自:https://dmitripavlutin.com/7-architectural-attributes-of-a-reliable-react-component/ 封装过的组件应提供 props 以控制其行为,而不是暴露内部的结构 耦合(coupling) 是一种表示组件之间依赖度的系统特征。根据依赖的程度,可以区分出两种耦合: 组件...