Creates a pointer using the given reference.

  • Type Parameters

    • T extends object

      The type of the reference object.

    Parameters

    • Optionalref: T

      The reference object.

    Returns readonly [{}, (ref: T) => void]

    • The pointer object.