Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pagic/deps.ts>ReactDOM.createPortal

A static site generator powered by Deno + React
Latest
function ReactDOM.createPortal
import { ReactDOM } from "https://deno.land/x/pagic@v1.6.3/deps.ts";
const { createPortal } = ReactDOM;

Parameters

children: ReactNode
container: Element | DocumentFragment
optional
key: null | string

Returns

ReactPortal