React Hooks Part 7: useImperativeHandle and useLayoutEffect
Two escape hatches most tutorials skip: useImperativeHandle for exposing a controlled API from a child component, and useLayoutEffect for DOM measurements that must happen before the browser paints.