Documentation
On this page

Function · Hooks and State

useControlRef

Creates a retained control ref whose identity remains stable between renders.

@sharpts/gui · SharpTS 572a2e31be0e

Signature

TypeScript
useControlRef(): ControlRef<THandle>

Returns

ControlRef<THandle> — The stable control ref.

Source

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