5.1.0
Adds new useFrame hook for access to iframes window and document host objects without the need for the context render prop pattern.
import { useFrame } from 'react-frame-component';
function Foo (props) {
const { window, document } = useFrame();
/* rest of the component */
}