geoview-core
    Preparing search index...

    Interface RefObject<T>

    A readonly ref container where current cannot be mutated.

    Created by createRef, or useRef when passed null.

    const ref = createRef<HTMLDivElement>();

    ref.current = document.createElement('div'); // Error
    interface RefObject<T> {
        current: T | null;
    }

    Type Parameters

    • T

      The type of the ref's value.

    Index

    Properties

    Properties

    current: T | null

    The current value of the ref.