Documentation
On this page

Function · Hooks and State

useRef

Creates a mutable value whose object identity remains stable between renders.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
useRef(initial: T): MutableRef<T>

Parameters

NameTypeDescription
initialTInitial current value.

Returns

MutableRef<T> — The stable mutable ref.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:251 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.