Skip to content

@serenity-is/corelib / initPropHookSymbol

Variable: initPropHookSymbol

const initPropHookSymbol: unique symbol

Defined in: ../domwise/dist/index.d.ts:2757

Well-known symbol (Symbol.for("Serenity.initPropHook")) that marks a value as a JSX prop hook.

When a prop value that carries this symbol is assigned as a JSX attribute, the renderer invokes value[initPropHookSymbol](node, propName) to let the hook bind itself to the DOM node (e.g. to observe signals or install class-list synchronization). See also the PropHook interface.