Skip to content

RedDokia API Reference / RedDokiaViewMountHandler

Type Alias: RedDokiaViewMountHandler<TParams> ​

ts
type RedDokiaViewMountHandler<TParams> = (container, context) => 
  | void
  | (() => void)
| RedDokiaViewLifecycle<TParams>;

Function signature for mounting a framework-agnostic view into its persistent HTMLElement host container.

Type Parameters ​

Type ParameterDefault type
TParamsRecord<string, any>

Parameters ​

ParameterType
containerHTMLElement
contextRedDokiaViewRenderProps<TParams>

Returns ​

| void | (() => void) | RedDokiaViewLifecycle<TParams>