React 向children中传值,layouts

const newChild = React.children.map(children,function(childItem){
  return React.cloneElement(childItem,{
     key:'传递的数据'
  })
})

你可能感兴趣的:(react+antd,react)