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

A callback fired whenever the ref's value changes.

Type Parameters

  • T

    The type of the ref's value.

See

React Docs

Example

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