Documentation
On this page

Function · Hooks and State

useRef

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

@sharpts/gui · SharpTS 572a2e31be0e

Signature

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

Parameters

NameTypeDescription
initialTInitial current value.

Returns

MutableRef<T> — The stable mutable ref.

Source

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:251 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.