RenderOptions
Summary
Options for render.
Signature
interface RenderOptions {
container?: HTMLElement;
frame?: FrameHandle;
frameInit?: {
loadModule?: (
moduleUrl: string,
exportName: string,
) => Function | Promise<Function>;
resolveFrame: (
src: string,
signal?: AbortSignal,
target?: string,
) => FrameContent | Promise<FrameContent>;
src?: string;
};
scheduler?: {
addEventListener: any;
dequeue: any;
enqueue: any;
enqueueCommitPhase: any;
enqueueTasks: any;
enqueueWork: any;
removeEventListener: any;
};
styleManager?: {
adoptServerStyles: (source: ServerStyleSource) => void;
dispose: () => void;
getGeneration: () => number;
has: (className: string) => boolean;
insert: (className: string, rule: string) => void;
remove: (className: string) => void;
reset: () => void;
};
}
Properties
container
The element to mount the component into. Defaults to a fresh div appended to
document.body.