[译]展示组件(Presentational Components)与容器组件(Container Components) 为展示组件/容器组件提供数据与行为。你需要善用这一点。何时引入容器组件?容器组件也可以是无状态的,反之,展示组件也可以有状态。纯组件可以是类组件/函数组件,也可以有状态/无状态。因此展示组件既能包含容器组件也能包含展示组件,容器组件亦然。 willluckysmile 2019-06-21 13:00:44
The power of semantic in CSS ”, and some may go further with “WTF n00b!! libowen0 2014-01-27 11:26:48
The power of semantic in CSS ”, and some may go further with “WTF n00b!! zhuizhuizhui 2014-01-27 10:49:21