Skip to content

Type Alias: MountFn

API / @xmachines/play-dom / MountFn

type MountFn = (actor, container, options?) => () => void;

Defined in: packages/play-dom/src/create-play-ui.ts:69

The mount function returned by createPlayUI.

Call with (actor, container, mountOptions?) to start the renderer. Returns a disconnect cleanup function that stops rendering and clears the container.

Parameters

ParameterType
actorAbstractActor<AnyActorLogic> & Viewable
containerHTMLElement
options?MountOptions

Returns

() => void