procedural-to-declarative
    Preparing search index...

    Function useRef

    • Create a ref and add it to the track.

      Type Parameters

      • T
      • TNumber extends number = number

      Parameters

      • track: Track<TNumber>

        The track to add the ref to.

      • v: T

        The initial value of the ref.

      Returns Ref<T>

      The created ref.