useImperativeHandle can expose a controlled object with methods such as focus or scrollIntoView instead of exposing the whole DOM node.