useImperativeHandle

Rarely used, useImperativeHandle() allows you to set which properties will be exposed on a ref, and what additional customizations to make in the exposed methods. It may accept a dependency array as the third argument and should be used with forwardRef().