When React sees an element representing a user-defined component, it passes JSX attributes to this component as a single object. We call this object “props”. 意思是:当React看到表示用户定义组件的元素时,它会将JSX属性作为单个对象传递给此组件。我们称这个对象为“道具”。
概念官网上是这么说的:When React sees an element representing a user-defined component, it passes JSX attributes to this component as a single object. We call this object “props”.意思是:当React看到表示用户定义组件的元素时,它会将...