Class Ref<T>
java.lang.Object
megalodonte.base.components.Ref<T>
- Type Parameters:
T- the type of component held
- All Implemented Interfaces:
megalodonte.contracts.RefContract<T>
A mutable reference holder for components. Analogous to React's
useRef —
allows a parent to access a child component after render.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Ref
public Ref() -
Ref
-
-
Method Details
-
current
-
setCurrent
-