Function · Hooks and State
createSignal
Creates reactive state that invalidates every GUI root that reads it.
@sharpts/gui · SharpTS 572a2e31be0eSignature
TypeScript
createSignal(initial: T): [() => T, SignalSetter<T>]Parameters
| Name | Type | Description |
|---|---|---|
initial | T | Initial signal value. |
Returns
[() => T, SignalSetter<T>] — A getter and setter pair.
Related symbols
Source
src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:104 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.