Skip to content

5.1.0

Choose a tag to compare

@ryanseddon ryanseddon released this 16 Jun 01:14
· 52 commits to master since this release

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 */
}

v5.0.1...v5.1.0