摘要: React.Children props.children 代表了所有的子节点。 React.Children 用于处理 props.children 的 提供了几个方法 ( map ,foreach ) 遍历所有的子节点,并且配合 React.cloneElement / React.create 阅读全文
posted @ 2019-10-21 16:10 小结巴巴吧 阅读(2906) 评论(0) 推荐(0) 编辑