As I understand, useImperativeHandle helps parent component able to call function of its children component. You can see a simple example below const Parent = () => { const ref = useRef(null); const onClick = ...
Home/react-hooks