Reference
@reckona/mreact-reactive-dom/internal
16 public exports.
Function
FunctionbindCapturedEvent
function bindCapturedEvent(element: HTMLElement, type: string, listener: EventListener, delegated: boolean): DisposeFunctionbindCompilerKeyedCellTextfunction bindCompilerKeyedCellText<T, K>(context: CompilerKeyedRowContext<T>, node: Text, property: K): DisposeInternal Cell-property text binding used by compiler-generated keyed rows.FunctionbindCompilerKeyedPropertyTextfunction bindCompilerKeyedPropertyText<T, K>(context: CompilerKeyedRowContext<T>, node: Text, property: K): DisposeInternal direct-property text binding used by compiler-generated keyed rows.FunctionbindCompilerKeyedSingleNodeListfunction bindCompilerKeyedSingleNodeList<T, TNode>(parent: ParentNode, marker: ChildNode, items: (): readonly T[], renderItem: CompilerKeyedSingleNodeRenderer<T, TNode>, options: BindCompilerKeyedSingleNodeListOptions<T, TNode>): DisposeBinds compiler-generated keyed rows through mutable per-row context.FunctionbindCompilerKeyedTextfunction bindCompilerKeyedText<T>(context: CompilerKeyedRowContext<T>, node: Text, readValue: (): unknown): DisposeInternal text binding used only by compiler-generated keyed row renderers.FunctioncreateMemofunction createMemo<P>(type: unknown, props: P, render: (props: P): RenderValue, compare: (previous: P, next: P): boolean): MemoRenderValue<P>Creates a memo render value for an owner-scoped dynamic insertion.FunctioninsertMemofunction insertMemo(parent: ParentNode, marker: ChildNode, value: (): MemoInsertionValue, options?: { debugLabel?: string }): DisposeInserts a compiler-proven memo or non-list fallback before a marker node.FunctioninsertMemoDynamicfunction insertMemoDynamic(parent: ParentNode, marker: ChildNode, value: (): MemoDynamicValue, options?: { debugLabel?: string }): DisposeInserts a compiler-owned memo render value before a marker node.FunctionmarkCompilerKeyedEventSlotfunction markCompilerKeyedEventSlot(element: Element, type: string, slot: number): voidMarks a row element with a compiler-owned event slot without adding a listener.FunctionsetDomAttributefunction setDomAttribute(element: Element, name: string, value: string): voidInterface
InterfaceCompilerKeyedEventProgram
interface CompilerKeyedEventProgramCompiler-owned event program shared by every row in one keyed list.InterfaceCompilerKeyedRowContextinterface CompilerKeyedRowContextInternal row state used by compiler-generated keyed single-node renderers.InterfaceMemoRenderValueinterface MemoRenderValueA component render deferred until its dynamic insertion owner accepts new props.Type Alias
Type AliasCompilerKeyedEventDispatcher
type CompilerKeyedEventDispatcher = (slot: number, context: CompilerKeyedRowContext<T>, event: Event, currentTarget: Element): voidCompiler-owned dispatcher for one delegated event type in a keyed row list.Type AliasCompilerKeyedSingleNodeRenderertype CompilerKeyedSingleNodeRenderer = (context: CompilerKeyedRowContext<T>): TNodeInternal renderer contract used only by compiler-generated output.