ReactDOM.createPortal modal is mounted on DOM but nothing is displayed on the screen
问题 this is a typescript-next.js project. I have this Modal component: interface ModalProps { onCancelModal: () => void; onAcceptModal: () => void; acceptEnabled: boolean; isLoading?: boolean; title: string; } const Modal: React.FC<ModalProps> = (props) => { let containerRef = useRef<HTMLDivElement | null>(null); console.log("container", containerRef); useEffect(() => { const rootContainer = document.createElement("div"); const parentElem = document.querySelector("#__next"); parentElem?