react-frame-component icon indicating copy to clipboard operation
react-frame-component copied to clipboard

Render your React app to an iFrame

Results 29 react-frame-component issues
Sort by recently updated
recently updated
newest added

I think that the `node` prop type is a better choice for the `children` prop type here, since it includes anything that is renderable.

Bumps [css-what](https://github.com/fb55/css-what) from 2.1.0 to 2.1.3. Commits 2db00ca 2.1.3 dc51092 fix(css-selectors): extend regex to include superscript in range, fix #27 (#28) a5f1991 Test on node LTS b2a2117 2.1.2 e9ef3f1 Run...

dependencies

Closes #225 This change updates the type of the default export of this library to correct match what's in the JS code. Previously, the types indicated the default export was...

Apropos #215 - I can't seem to find a type signature that TS is happy with when passing a ref into `Frame`. ```javascript const Test = () => { const...

This PR memoizes the FrameContextProvider value to prevent unnecessary re-renders.

I have a situation where I need to dynamically calculate the height of an iframe after it has loaded. However, I found in the source code that contentDidMount is triggered...

``` Uncaught TypeError: Cannot read properties of null (reading 'children') at Frame2.getMountTarget (react-frame-component.js?t=1703167413411&v=b806ac1f:258:27) at Frame2.renderFrameContents (react-frame-component.js?t=1703167413411&v=b806ac1f:291:34) at Frame2.render (react-frame-component.js?t=1703167413411&v=b806ac1f:311:45) at finishClassComponent (chunk-662WTFJQ.js?v=b806ac1f:14694:39) at updateClassComponent (chunk-662WTFJQ.js?v=b806ac1f:14659:32) at beginWork (chunk-662WTFJQ.js?v=b806ac1f:15918:22) at HTMLUnknownElement.callCallback2...

As per https://github.com/ryanseddon/react-frame-component/issues/169#issuecomment-1769738677, this PR adds a new `dangerouslyUseDocWrite` prop to the `Frame` component as an "escape hatch" that allows consumers to fall back to using `document.write()` to populate the...

Obligatory notice: I am still quite new to all this... Sorry for my ignorance in advance. **Description of the issue** The content inside of the iframe fails to render when...