Created
February 2, 2015 16:43
-
-
Save jaredly/593c9b22c619aaf0e0cf to your computer and use it in GitHub Desktop.
Demonstrate react devtools from inner frame
This file contains hidden or 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
<script> | |
__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__ | |
</script> | |
<script src="vendor.js"></script> | |
<script> | |
window.React = parent.React = require('react') | |
window.onload = function() { | |
React.render(React.createElement('strong', null, 'hello'), document.body) | |
} | |
</script> |
This file contains hidden or 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
<iframe src="inner.html"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment