component
component<
Value>(label?):ComponentHandle<Value>
Defined in: src/handle.ts:521
Creates a new component.
Additionally, a label can be provided for easier identification during debugging.
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()