Skip to content

RegistryComponent.getChildOrNull method

RegistryComponent › getChildOrNull

Get the single child of the given type.

Signature:

getChildOrNull(componentClass: Constructor<TComponent>): null | TComponent

Parameters:

ParameterTypeDescription
componentClassConstructor<TComponent>The class of the component to get.

Returns: null | TComponentThe single registered child of the given type, or null if none are registered.