component
component<
Value>(label?):ComponentHandle<Value>
Defined in: handle.ts:604
Creates a new ComponentHandle.
Additionally, a label can be provided for easier identification.
Type Parameters
Section titled “Type Parameters”Value = undefined
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”ComponentHandle<Value>
Example
Section titled “Example”// A component with a value.const Health = component<number>()
// A tag component.const IsAlive = component()