我一直在測試使用 React.cloneElement() 擴充套件元件的 children 的可能的侷限性/危險。我發現的一種可能的危險是可能覆蓋 ref 和 key 之類的Prop 。
確定! 回上一頁