@tempots/dom

DOMContext.makePortal() method

Creates a new DOMContext instance with a reference to a DOM element selected by the provided selector.

Signature:

makePortal(selector: string): DOMContext;

Parameters

Parameter

Type

Description

selector

string

The CSS selector for the target DOM element.

Returns: DOMContext

A new DOMContext instance with a reference to the selected DOM element.