將道具傳遞給MyComponent,但是如果要將MyComponent作為孩子,則必須使用 <div>{React.cloneElement(this.props.children, this.props)}</div>.
確定! 回上一頁