isComponent
The API for isComponent(); a runtime type guard for Ornata component constructors.
Import
Section titled “Import”import { isComponent } from 'ornata';
const { isComponent } = window.Ornata;Example
Section titled “Example”if (isComponent(value)) { value.mount(root);}When it helps
Section titled “When it helps”You will usually use isComponent() in framework internals, registries, or defensive bootstrap code.
It is especially useful when working with dynamic component maps or values from untyped boundaries.