Created
December 11, 2014 00:29
-
-
Save zbyte64/070fa723b7fe278a602c to your computer and use it in GitHub Desktop.
Render to an iframe using its own document model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var IReact = require.bind(window.frames['layout'])('react'); | |
IReact.renderComponent(IReact.DOM.div({}, "hello world"), window.frames['layout'].document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment