Function usePointer

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 [(Anonymous class)<T>, ((ref: T) => void)]

    • The pointer object.