hacifootprint
hcifootprint/reactType Aliases

ControlRef

Type Alias: ControlRef

ControlRef = (element) => void

Defined in: src/react/use-control.ts:49

The ref callback the hook returns. It takes the structural SensorElement, which every real HTMLElement satisfies — so it goes straight onto a <button>, an <input> or a <div> with no cast.

Parameters

element

SensorElement | null

Returns

void

On this page