Function createRef

  • Creates a ref object which can contain arbitrary value.

    Type Parameters

    • Type

    Returns Ref<Type>

    • Creates an object with a single property current (initially set to null).