JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fb.me/react-with-addons-0.11.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.11.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
<iframe src="http://www.example.com/"
onLoad="console.log('native iframe loaded');">
</iframe>
<div id="container"></div>
JavaScript 1.7
/** @jsx React.DOM */
var Iframe = React.createClass({
render: function() {
return React.DOM.iframe({
src: 'http://www.example.com/',
onLoad: function() {console.log('react iframe loaded');},
});
}
});
window.onload = function() {
React.renderComponent(Iframe(), document.getElementById("container"));
};