react 提供了一个克隆组件的API:React.cloneElement( element, [props], [...child])可以利用该方法,给子组件传值,使用如下:class Parent extends Component{ ...
確定! 回上一頁