create

fun create(component: Component, type: ComponentKind = ComponentKind.Generic): ComponentRef

Creates a ComponentRef from a component, with optionally the type of the component (by default set to ComponentKind.Generic).


inline fun <C : Component> create(type: ComponentKind = ComponentKind.Generic): ComponentRef

Creates a ComponentRef from a C component, with optionally the type of the component (by default set to ComponentKind.Generic).