Type Alias RefCallback<T>

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

A callback fired whenever the ref's value changes.

Type Parameters

  • T

    The type of the ref's value.

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