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
| Parameter | Type |
|---|---|
actor | AbstractActor<AnyActorLogic> & Viewable |
container | HTMLElement |
options? | MountOptions |
Returns
() => void