Type alias RefCallback<T>

RefCallback<T>: {
    bivarianceHack(instance: null | T): void;
}["bivarianceHack"]

A callback fired whenever the ref's value changes.

See

React Docs

Example

<div ref={(node) => console.log(node)} />

Type Parameters

  • T

    The type of the ref's value.

Generated using TypeDoc