v5.2.0
Forwarding iframe ref
Allow to pass ref prop to Frame component which will allow to reach the inner iframe HTMLIFrameElement.
The ref forwarding is done by React.forwardRef helper which wraps the original Frame class component instance.
Example usage:
function Foo() {
const iframeRef = React.useRef()
React.useEffect(() => {
iframeRef.style.setProperty('background-color', 'pink');
}, [])
<Frame ref={iframeRef} />
}