Function · Hooks and State
useRef
Creates a mutable value whose object identity remains stable between renders.
@sharpts/gui · SharpTS 572a2e31be0eSignature
TypeScript
useRef(initial: T): MutableRef<T>Parameters
| Name | Type | Description |
|---|---|---|
initial | T | Initial current value. |
Returns
MutableRef<T> — The stable mutable ref.
Related symbols
Source
src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:251 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.