Skip to main content

Ref

Callable

  • Ref<Value>(initialValue: Value): Ref<Value>

  • Create a new Ref object containing a value This implementation is compatible with React.createRef()

    @example
    const ref = Ref(123);// { current: initialValue }

    Type parameters

    • Value