Constructors
constructor
- new Ref(listener?: RefFunc<T>, initialReferene?: T): Ref
-
Parameters
-
Optional listener: RefFunc<T>
-
Optional initialReferene: T
Returns Ref
Accessors
r
- get r(): T
- set r(v: T): void
-
Returns T
-
Parameters
Returns void
Methods
addListener
- addListener(listener: RefFunc<T>): void
-
Parameters
Returns void
removeListener
- removeListener(listener: RefFunc<T>): void
-
Parameters
Returns void
Reference class to use whenever a reference to an object is needed - for example, with JSX
ref
attributes and services.