Documentation
    Preparing search index...

    Type Alias RefCallback<T>

    RefCallback: {
        bivarianceHack(instance: T | null): void | (() => VoidOrUndefinedOnly);
    }["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)} />