Skip to content

@continuum-js/dom


@continuum-js/dom / onMount

Function: onMount()

onMount(fn): void

Defined in: index.tsx:130

Register a callback to run once the current scope's nodes are inserted into the DOM — after mount, or right after a dynamic region (dyn/each) inserts a freshly built subtree. Use it for focus, measurement, and third-party libraries that need a live element. No-op outside any owner.

Parameters

fn

() => void

Returns

void