react-templates/playground/main.js

15 lines
385 B
JavaScript

/**
* Created by avim on 12/2/2014.
*/
var React = require('react/addons');
var fiddle = require('./fiddle.js');
var intro = require('./intro.js');
window.initFiddle = function () {
window.fiddle = React.render(fiddle(), document.getElementById('container'));
}
window.initIntro = function () {
window.intro = React.render(intro(), document.getElementById('container'));
}