useRef<T> function

ReactRef<T> useRef<T>([
  1. T? initialValue
])

Returns a stable mutable ref object.

See https://react.dev/reference/react/useRef.

Implementation

ReactRef<T> useRef<T>([T? initialValue]) =>
    currentReactRuntime.binding.useRef(initialValue);