Function createRef

  • Creates a ref object which can contain arbitrary value.

    Type Parameters

    • Type

    Returns RefObject<Type | null>

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

    Use useRef instead.