{"repo":"ryanseddon/react-frame-component","free":true,"listed":false,"github":"https://github.com/ryanseddon/react-frame-component","clone":"git clone https://github.com/ryanseddon/react-frame-component.git","description":"Render your React app to an iFrame","language":"JavaScript","stars":1812,"topics":["javascript","iframe","react","component"],"license":"MIT","category":"ui-components","readme_excerpt":"React &lt;Frame / component [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] This component allows you to encapsulate your entire React application or per component in an iFrame. How to use: Go check out the [demo][demo-url]. Or you can wrap it at the render call. Props: head head: PropTypes.node The head prop is a dom node that gets inserted before the children of the frame. Note that this is injected into the body of frame (see the blog post for why). This has the benefit of being able to update and works for stylesheets. initialContent initialContent: PropTypes.string Defaults to ' ' The initialContent props is the initial html injected into frame. It is only injected once, but allows you to insert any html into the frame (e.g. a head tag, script tags, etc). Note that it does not update if you change the prop. Also at least one div is required in the body of the html, which we use to render the react dom into. mountTarget mountTarget: PropTypes.string The mountTarget props is a css selector (#target/.target) that specifies where in the initialContent of the iframe, children will be mounted. dangerouslyUseDocWrite dangerouslyUseDocWrite: PropTypes.bool Defaults to false The frame's initial content, as defined by the initialContent prop, is populated via the frame's srcdoc attribute by default. However, this can cause issues with some libraries such as Recaptcha and Google Maps that depend on ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryanseddon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryanseddon/react-frame-component/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}