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.
Question 17 of 20 in useRef