useImperativeHandle

How does the useImperativeHandle hook handle the exposed methods?