A callback ref receives the DOM node when React attaches it and null when React removes it. This can be useful when ref assignment needs custom bookkeeping.