Portal 提供一個優秀方法來讓children 可以render 到parent component DOM 樹以外的DOM 節點。 ReactDOM.createPortal(child, container).
確定! 回上一頁