Interface IntrinsicClassAttributes<T>

interface IntrinsicClassAttributes<T> {
    key?: Key;
    ref?: LegacyRef<T>;
}

Type Parameters

  • T

Hierarchy

  • GlobalJSXIntrinsicClassAttributes<T>
    • IntrinsicClassAttributes

Properties

Properties

key?: Key
ref?: LegacyRef<T>

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).