我一直在测试使用 React.cloneElement() 的可能限制/危险扩展组件的 children .我发现的一种可能的危险是可能会覆盖诸如 ref 之类的Prop 。和 key .
確定! 回上一頁